# HG changeset patch # User Pierre-Yves David # Date 1408403549 25200 # Node ID adb3798dce492b25be5c1ee7ec273267467a7531 # Parent b8a0e8176693ec0845f3d23015dc09f5e1443420 obsstore: add a `parents` argument to obsstore.create We need a way to pass the information to the function. Some guru told me that what's arguments are made for. diff -r b8a0e8176693 -r adb3798dce49 mercurial/obsolete.py --- a/mercurial/obsolete.py Mon Aug 18 16:08:44 2014 -0700 +++ b/mercurial/obsolete.py Mon Aug 18 16:12:29 2014 -0700 @@ -272,8 +272,8 @@ def __nonzero__(self): return bool(self._all) - def create(self, transaction, prec, succs=(), flag=0, date=None, - metadata=None): + def create(self, transaction, prec, succs=(), flag=0, parents=None, + date=None, metadata=None): """obsolete: add a new obsolete marker * ensuring it is hashable @@ -302,7 +302,7 @@ if prec in succs: raise ValueError(_('in-marker cycle with %s') % node.hex(prec)) marker = (str(prec), tuple(succs), int(flag), encodemeta(metadata), - date, None) + date, parents) return bool(self.add(transaction, [marker])) def add(self, transaction, markers):