[issue2766] bundle / unbundle does not support subrepos

Chris Snazell bugs at mercurial.selenic.com
Thu Apr 14 20:03:34 UTC 2011


New submission from Chris Snazell <csnazell at astraea-software.com>:

using version 1.8.2

I'd expect that bundle & unbundle would just work as expected with subrepos 
and hoover the subrepos up from the master repo. 

Steps to repeat (Referenced attachments have been bundled up into 
debug.zip):

Create example repo + subrepo

$ hg init main
$ cd main
$ hg init nested
$ echo nested = nested > .hgsub
$ hg add .hgsub
$ cd nested
$ touch example.txt
$ hg add example.txt
$ cd ..
$ hg status -S
A .hgsub
A nested/example.txt
$ hg commit -m "demo repo + subrepo"

(see attached main.tar.gz & main.hg)

Cloning works as expected creating a duplicated of main.

However:

$ hg bundle -a ../main.hg
1 changesets found
$ cd ..
$ hg init unbundled
$ cd unbundled
$ hg unbundle ../main.hg
adding changesets
adding manifests
adding file changes
added 1 changesets with 2 changes to 2 files
(run 'hg update' to get a working copy)
$ hg update
abort: default path for subrepository nested not found

This looks like the repositories have been unpacked but the working copy 
can't be updated. What's on the filesystem supports this since the structure 
of the nested repo is present. (see attached unbundled.tar.gz)

If I try to clone from the bundle though I get this:

$ hg clone main.hg bundleclone
requesting all changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 2 changes to 2 files
updating to branch default
pulling subrepo nested from /home/csnazell/main.hg/nested
abort: repository /home/csnazell/main.hg/nested not found!

Which would suggest that the bundle isn't picking up the subrepo's content 
perhaps (see attached bundleclone.tar.gz)

I've tried defining a default path in the subrepo's .hg/hgrc but all the 
obvious paths (nested, main/nested & .) don't resolve the problem.

----------
files: debug.zip
messages: 16067
nosy: csnazell
priority: bug
status: unread
title: bundle / unbundle does not support subrepos

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2766>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.zip
Type: application/zip
Size: 5913 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110414/0e3d1e80/attachment.zip>


More information about the Mercurial-devel mailing list