Cloning subrepos to revision
I've searched quite a lot on here for an answer to this question, but
can't seem to find quite what I need. I also have a feeling that what I
want is not possible, but want to be sure before giving up, and hopefully
leave this question out there for people after me trying to do the same
thing.
Anyway...
TortoiseHg, and presumably Hg in general, allow me to 'clone to revision',
i.e. if my revisions go up to 10, I can clone to e.g. 7 and the resulting
cloned repo will only contain revisions 1-7. It will also ignore branches
that 7 does not depend on, etc.
This, for reasons I can't go into, is very useful for my work, however I
really need it to recurse that behaviour into subrepos as well. However,
when I clone my main repo to a revision, the resulting clone has the
entire subrepo but updated to the relevant revision. I can clone each
individual main repo and subrepo to the right revision separately, but I'd
really like to do it in one go. Is there a way to do this without writing
my own batch file monstrosity?
Thanks in advance,
Paul
No comments:
Post a Comment