hgext/convert/common.py
changeset 42620 d98ec36be808
parent 39836 f1d6021453c2
child 43076 2372284d9457
equal deleted inserted replaced
42619:20d0e59be79b 42620:d98ec36be808
   112 SKIPREV = 'SKIP'
   112 SKIPREV = 'SKIP'
   113 
   113 
   114 class commit(object):
   114 class commit(object):
   115     def __init__(self, author, date, desc, parents, branch=None, rev=None,
   115     def __init__(self, author, date, desc, parents, branch=None, rev=None,
   116                  extra=None, sortkey=None, saverev=True, phase=phases.draft,
   116                  extra=None, sortkey=None, saverev=True, phase=phases.draft,
   117                  optparents=None):
   117                  optparents=None, ctx=None):
   118         self.author = author or 'unknown'
   118         self.author = author or 'unknown'
   119         self.date = date or '0 0'
   119         self.date = date or '0 0'
   120         self.desc = desc
   120         self.desc = desc
   121         self.parents = parents # will be converted and used as parents
   121         self.parents = parents # will be converted and used as parents
   122         self.optparents = optparents or [] # will be used if already converted
   122         self.optparents = optparents or [] # will be used if already converted
   124         self.rev = rev
   124         self.rev = rev
   125         self.extra = extra or {}
   125         self.extra = extra or {}
   126         self.sortkey = sortkey
   126         self.sortkey = sortkey
   127         self.saverev = saverev
   127         self.saverev = saverev
   128         self.phase = phase
   128         self.phase = phase
       
   129         self.ctx = ctx # for hg to hg conversions
   129 
   130 
   130 class converter_source(object):
   131 class converter_source(object):
   131     """Conversion source interface"""
   132     """Conversion source interface"""
   132 
   133 
   133     def __init__(self, ui, repotype, path=None, revs=None):
   134     def __init__(self, ui, repotype, path=None, revs=None):