Comments
Patch
@@ -713,10 +713,15 @@ class localrepository(object):
# ensure a blank dictionary exists
self._labels[namespace] = {}
return True
return False
+ def label(self, namespace, name, node):
+ '''Add a label to self._labels[namespace][name]'''
+ self._createlabelnamespace(namespace)
+ self._labels[namespace][name] = node
+
def branchmap(self):
'''returns a dictionary {branch: [branchheads]} with branchheads
ordered by increasing revision number'''
branchmap.updatecache(self)
return self._branchcaches[self.filtername]