State of subrepos?
Mina R Waheeb
syncer at gmail.com
Thu Feb 18 14:56:13 UTC 2010
On Thursday 18 February 2010 11:19:34 am Andreas Axelsson wrote:
> > You'll need to update just the .hgsub, .hgsubstate should be
> > considered private, it will be updated automatically when you commit.
> >
> > Abderrahim
>
> Problem I ran into was that I was changing the subrepo to point to another,
> unrelated, repo and it would complain about that unless I removed the
> current pointer from .hgsubstate.
>
> I can imagine a few reasons for wanting to do that, so it would be very
> good if it was supported officially. Or would the correct way be to remove
> the old entry from .hgsub, delete the sub rebo, commit and re-add it as if
> it was a completely new sub repo?
>
> /axl
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
SVN support that by svn switch, hg subrepo stored in .hgsub and .hgsubstate as
normal files. so to provide the support to switch will need to edit the
history, I dunno if that possible. maybe better solution always take the URL
from the tip changeset. In, current versions of HG if you change your subrepo
location your old changesets are broken, as far as i know!
Cheers,
Mina R Waheeb
More information about the Mercurial
mailing list