Comments
Patch
@@ -663,10 +663,18 @@ class localrepository(object):
'''
if namespace not in self._markers:
# ensure a blank dictionary exists
self._markers[namespace] = {}
+ def mark(self, namespace, name, node):
+ '''Add a mark to self._markers[namespace][name]
+
+ RFC: should we allow tags and bookmarks to be set this way?
+ '''
+ self._createmarkernamespace(namespace)
+ self._markers[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]