hgext/convert/common.py
changeset 28900 b65966f50058
parent 28670 ff0d3b6b287f
child 29205 a0939666b836
--- a/hgext/convert/common.py	Thu Mar 24 16:01:07 2016 -0700
+++ b/hgext/convert/common.py	Wed Apr 13 00:16:21 2016 +0200
@@ -55,11 +55,13 @@
 
 class commit(object):
     def __init__(self, author, date, desc, parents, branch=None, rev=None,
-                 extra={}, sortkey=None, saverev=True, phase=phases.draft):
+                 extra={}, sortkey=None, saverev=True, phase=phases.draft,
+                 optparents=None):
         self.author = author or 'unknown'
         self.date = date or '0 0'
         self.desc = desc
-        self.parents = parents
+        self.parents = parents # will be converted and used as parents
+        self.optparents = optparents or [] # will be used if already converted
         self.branch = branch
         self.rev = rev
         self.extra = extra