"hg since" extension

CG Linden cg at lindenlab.com
Wed Nov 11 13:15:59 CST 2009


And this is the follow up on my question about locked branches.

I'm working on an extension to give me a good answer to the question "what
changed since revision X". It appears trivially easy. Mark all ancestors of
the specified revision as "seen", then list all unseen ancestors of "tip".

There are two gotchas which I need to resolve first, though:

   - How to deal with transplants
   - How to convince our release guy that it is safe to push the release
   branch back into the main repo, so that "hg since" can actually see the
   released revision.

Transplants are pretty easy - simply look at the extra and mark the
"transplant_source" revision as "transplanted" and ignore it on subsequent
scans. My only noob question there is whether I understand the ctx object
correctly and that I can indeed retrieve a different revision via the [...]
operator, as in:

   node = repo[rev]
   new_node = node[new_rev]

But to convince our release guy that it is safe to push a closed branch, I
need it to work without too many bad surprises, and without forcing any
merges.
--
cg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20091111/74cd972f/attachment.htm>


More information about the Mercurial-devel mailing list