diff hgext/convert/common.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 284fda4cd093
children a0a541d6fed6
line wrap: on
line diff
--- a/hgext/convert/common.py	Mon Jun 01 17:12:38 2009 +0200
+++ b/hgext/convert/common.py	Mon Jun 01 17:12:39 2009 +0200
@@ -38,7 +38,7 @@
 
 class commit(object):
     def __init__(self, author, date, desc, parents, branch=None, rev=None,
-                 extra={}):
+                 extra={}, sortkey=None):
         self.author = author or 'unknown'
         self.date = date or '0 0'
         self.desc = desc
@@ -46,6 +46,7 @@
         self.branch = branch
         self.rev = rev
         self.extra = extra
+        self.sortkey = sortkey
 
 class converter_source(object):
     """Conversion source interface"""