mercurial/ancestor.py
changeset 23340 83225aff0265
parent 23339 5c3a29be8fae
child 23341 bcc3012f8477
--- a/mercurial/ancestor.py	Fri Nov 14 16:53:40 2014 -0800
+++ b/mercurial/ancestor.py	Sun Nov 16 00:39:29 2014 -0800
@@ -146,6 +146,10 @@
             self.bases.add(nullrev)
         self.pfunc = pfunc
 
+    def hasbases(self):
+        '''whether the common set has any non-trivial bases'''
+        return self.bases and self.bases != set([nullrev])
+
     def missingancestors(self, revs):
         '''return all the ancestors of revs that are not ancestors of self.bases