convert: save hg revision during a convert
authorBryan O'Sullivan <bos@serpentine.com>
Mon, 26 Nov 2007 14:01:31 -0800
changeset 5553 ee80591f5636
parent 5542 253736bb0dc9
child 5554 2147a734dcf9
convert: save hg revision during a convert This breaks hg->hg hash roundtripping, but that was fragile, didn't work reliably, and hence arguably of little value.
hgext/convert/hg.py
--- a/hgext/convert/hg.py	Tue Nov 20 15:54:25 2007 -0600
+++ b/hgext/convert/hg.py	Mon Nov 26 14:01:31 2007 -0800
@@ -241,7 +241,7 @@
         ctx = self.changectx(rev)
         parents = [hex(p.node()) for p in ctx.parents() if p.node() != nullid]
         return commit(author=ctx.user(), date=util.datestr(ctx.date()),
-                      desc=ctx.description(), parents=parents,
+                      desc=ctx.description(), rev=rev, parents=parents,
                       branch=ctx.branch(), extra=ctx.extra())
 
     def gettags(self):