Rules for triggering an svn subrepo checkout?

Sean Farley sean at farley.io
Thu Apr 13 06:55:33 UTC 2017


Jon Marbach <jonmarbach at gmail.com> writes:

> Hi there - first post here - Mercurial is great! I've been loving it for
> years. Thanks in advance...

(sorry for the late reply)

> I've been trying out the subrepos feature for the first time to pull in a
> mix of hg and svn repos and I have a few questions that I don't see
> answered anywhere else...

Well, there's the problem: subrepos, a very unloved feature.

> 1) What are the rules for how mercurial decides to run an svn checkout for
> a subrepo? I decided to delete one checked-out subrepo because it had
> gotten into an odd state, and I had assumed running some variant of hg
> update would re-check it out, but I simply get a message from svn that "XXX
> is not a working copy". (For reference, I'm doing this from the command
> line on linux using Mercurial ~4.0.) I would have expected hg to behave the
> (roughly) the same way that it does when a file goes missing: that an
> update -C brings it back.

Hmmm, I would have thought 'hg up -C' would do that.

> 2) Searching for answers to the above, led to several results which imply
> that switching branches with different sets of subrepos won't check out new
> svn subrepos. (For example,
> https://bz.mercurial-scm.org/show_bug.cgi?id=4427) Can someone confirm what
> the expected/actual behavior is? If it's true that hg won't check out new
> subrepos when switching revs/branches, then... well, I'll wait for an
> answer first.
>
> 3) Is there a way to make the svn console i/o interactive so that I can a)
> see what it's doing to get a sense of progress b) respond to any prompts
> that come up [e.g., password prompts]?

Adding --debug flag so do that (or --verbose for a bit less info).
Though, it'd be hard to reproduce since I no longer have a subversion
repo that I'm working on.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20170412/289bf434/attachment.asc>


More information about the Mercurial mailing list