mercurial/branchmap.py
changeset 18232 dd0b636b0b65
parent 18218 d5655e742457
child 18234 a55b06885cda
--- a/mercurial/branchmap.py	Wed Jan 02 01:40:06 2013 +0100
+++ b/mercurial/branchmap.py	Wed Jan 02 01:40:42 2013 +0100
@@ -117,6 +117,9 @@
         except IndexError:
             return False
 
+    def copy(self):
+        """return an deep copy of the branchcache object"""
+        return branchcache(self, self.tipnode, self.tiprev, self.filteredhash)
 
     def write(self, repo):
         try: