diff hgext/convert/hg.py @ 8690:c5b4f662109f

convert: add --sourcesort option for source specific sort Only supported by Mercurial source for now.
author Patrick Mezard <pmezard@gmail.com>
date Mon, 01 Jun 2009 17:12:39 +0200
parents ba42e3c6e602
children a0a541d6fed6
line wrap: on
line diff
--- 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']