hgext/convert/hg.py
changeset 8690 c5b4f662109f
parent 8611 ba42e3c6e602
child 8691 a0a541d6fed6
--- a/hgext/convert/hg.py	Mon Jun 01 17:12:38 2009 +0200
+++ b/hgext/convert/hg.py	Mon Jun 01 17:12:39 2009 +0200
@@ -302,7 +302,8 @@
             crev = None
         return commit(author=ctx.user(), date=util.datestr(ctx.date()),
                       desc=ctx.description(), rev=crev, parents=parents,
-                      branch=ctx.branch(), extra=ctx.extra())
+                      branch=ctx.branch(), extra=ctx.extra(),
+                      sortkey=ctx.rev())
 
     def gettags(self):
         tags = [t for t in self.repo.tagslist() if t[0] != 'tip']