##// END OF EJS Templates
obsstore: add a `parents` argument to obsstore.create...
Pierre-Yves David -
r22255:adb3798d default
parent child Browse files
Show More
@@ -272,8 +272,8 b' class obsstore(object):'
272 def __nonzero__(self):
272 def __nonzero__(self):
273 return bool(self._all)
273 return bool(self._all)
274
274
275 def create(self, transaction, prec, succs=(), flag=0, date=None,
275 def create(self, transaction, prec, succs=(), flag=0, parents=None,
276 metadata=None):
276 date=None, metadata=None):
277 """obsolete: add a new obsolete marker
277 """obsolete: add a new obsolete marker
278
278
279 * ensuring it is hashable
279 * ensuring it is hashable
@@ -302,7 +302,7 b' class obsstore(object):'
302 if prec in succs:
302 if prec in succs:
303 raise ValueError(_('in-marker cycle with %s') % node.hex(prec))
303 raise ValueError(_('in-marker cycle with %s') % node.hex(prec))
304 marker = (str(prec), tuple(succs), int(flag), encodemeta(metadata),
304 marker = (str(prec), tuple(succs), int(flag), encodemeta(metadata),
305 date, None)
305 date, parents)
306 return bool(self.add(transaction, [marker]))
306 return bool(self.add(transaction, [marker]))
307
307
308 def add(self, transaction, markers):
308 def add(self, transaction, markers):
General Comments 0
You need to be logged in to leave comments. Login now