Method to easily find out the revision used for each subrepository within a repository

Didly Bom didlybom at gmail.com
Thu May 27 08:55:42 UTC 2010


I'd like to be able to quickly find out which revision is used for each
subrepository within a repository. Currently the only quick method that I
know of to do this is by reading the .hgsubstate file.

The problem is that .hgsubstate file will always use the full revision hash
in the .hgsubstate file. This means that it will not be easy for the user to
realize that a subrepository is set to a certain tagged revision for
instance.

So is there some sort of "subrepo state" command which shows you the
revision that each subrepo points to, using global (and even local) tags or
even local revision ids when possible? If that command does not exist, it'd
be nice to have it! :-)

An alternative would be that mercurial could either use global tag names in
the .hgsubstate file when it could, or perhaps if it could add those tags as
some sort of comment to the file. However I imagine that this may be
complex, as it may imply changing the .hgsubstate file when adding or
removing a tag, etc.

BTW, if I understand the subrepo documentation correctly, it could be
possible for a savvy user to manually modify the .hgsubstate file and use
global tag names in doing so. Is that correct?

Cheers,

Didly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20100527/e57b30d4/attachment.html>


More information about the Mercurial mailing list