ANN: deps extension
Martin Vejnár
avakar at ratatanek.cz
Wed Apr 8 05:55:54 CDT 2009
Arne Babenhauserheide wrote:
> The deps extension sounds useful (I didn't yet know about it).
Arne, thank you for replying.
> Do I understand it right, that it allows to pull in other hg repositories into
> folders inside my repo?
Yes. For each changeset in the main repository, it will help you record
the revisions and directories, in which your dependencies were at the
time (using 'hg dep' and 'hg depcommit' commands). You can then run 'hg
depupdate' to return your dependencies to this recorded state (and pull
them from source if necessary). You can also run this command after you
cloned some else's repository (assuming of course they used the hgdeps
extension :-) ).
Note also, that the dependencies are not required to be Mercurial. I
personally tried a svn dependency, though I'm not sure know how hard it
would be to use other versioning systems.
> Is there any danger when I accidently tell hg to add a file from a depencendy?
I suppose there is, I didn't realize it until now. I could probably add
some checking for this. For Mercurial dependencies this is a non-issue,
'hg add' will not allow you to add a file from a nested repo.
Best regards,
--
Martin
More information about the Mercurial
mailing list