Skip to content
Snippets Groups Projects
Commit adb3798dce49 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

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.
parent b8a0e8176693
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment