hgext/convert/common.py
changeset 4873 28b23b9073a8
parent 4813 1fcdf2fe3d7c
child 4957 cdd33a048289
equal deleted inserted replaced
4872:419a6f715c6a 4873:28b23b9073a8
     2 
     2 
     3 class NoRepo(Exception): pass
     3 class NoRepo(Exception): pass
     4 
     4 
     5 class commit(object):
     5 class commit(object):
     6     def __init__(self, **parts):
     6     def __init__(self, **parts):
       
     7         self.rev = None
       
     8         self.branch = None
       
     9 
     7         for x in "author date desc parents".split():
    10         for x in "author date desc parents".split():
     8             if not x in parts:
    11             if not x in parts:
     9                 raise util.Abort("commit missing field %s" % x)
    12                 raise util.Abort("commit missing field %s" % x)
    10         self.__dict__.update(parts)
    13         self.__dict__.update(parts)
    11         if not self.desc or self.desc.isspace():
    14         if not self.desc or self.desc.isspace():