Add default local() and cancopy() methods to repository base class
authorJohn Mulligan <phlogistonjohn@asynchrono.us>
Sat, 15 Mar 2008 15:23:20 -0400
changeset 6311 a079cf630065
parent 6310 1a13a5bbbbc1
child 6312 08800489257e
Add default local() and cancopy() methods to repository base class
mercurial/repo.py
--- a/mercurial/repo.py	Fri Mar 07 16:19:46 2008 +0100
+++ b/mercurial/repo.py	Sat Mar 15 15:23:20 2008 -0400
@@ -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()
+