mercurial/ancestor.py
changeset 23341 bcc3012f8477
parent 23340 83225aff0265
child 23342 f710644e1ce9
--- a/mercurial/ancestor.py	Sun Nov 16 00:39:29 2014 -0800
+++ b/mercurial/ancestor.py	Fri Nov 14 17:21:00 2014 -0800
@@ -150,6 +150,10 @@
         '''whether the common set has any non-trivial bases'''
         return self.bases and self.bases != set([nullrev])
 
+    def addbases(self, newbases):
+        '''grow the ancestor set by adding new bases'''
+        self.bases.update(newbases)
+
     def missingancestors(self, revs):
         '''return all the ancestors of revs that are not ancestors of self.bases