Commits

Michael Tharp  committed 11f3939

Fix SSH repos on hg 1.7

  • Participants
  • Parent commits 988ad51

Comments (0)

Files changed (1)

         raise util.Abort(_("Remote forests cannot be cloned because the "
                            "other repository doesn't support the forest "
                            "extension."))
-    data = self.call("forests", walkhg=("", "True")[walkhg])
+    if hasattr(self, 'call'):
+        # hg < 1.7
+        func = self.call
+    else:
+        # hg >= 1.7
+        func = self._call
+    data = func("forests", walkhg=("", "True")[walkhg])
     return data.splitlines()
 
 sshrepo.sshrepository.forests = _sshrepo_forests