[PATCH] Add default local() and cancopy() methods to repository base class

John Mulligan phlogistonjohn at asynchrono.us
Sat Mar 15 19:32:14 UTC 2008


# HG changeset patch
# User John Mulligan <phlogistonjohn at asynchrono.us>
# Date 1205609000 14400
# Node ID 8fb13d8abb8baf1d594d483d00606561abfe0fed
# Parent  d036ea7111405d03775cf50377bfeedf027a2ee9
Add default local() and cancopy() methods to repository base class

diff --git a/mercurial/repo.py b/mercurial/repo.py
--- a/mercurial/repo.py
+++ b/mercurial/repo.py
@@ -34,3 +34,10 @@
             raise NoCapability(_('cannot %s; remote repository does not '
                                  'support the %r capability') %
                                (purpose, name))
+
+    def local(self):
+        return False
+
+    def cancopy(self):
+        return self.local()
+



More information about the Mercurial-devel mailing list