remove duplicate code.
--- a/mercurial/httprepo.py Thu Jun 22 13:19:52 2006 +0900
+++ b/mercurial/httprepo.py Wed Jun 21 22:45:29 2006 -0700
@@ -176,9 +176,6 @@
capabilities = property(get_caps)
- def dev(self):
- return -1
-
def lock(self):
raise util.Abort(_('operation not supported over http'))
--- a/mercurial/remoterepo.py Thu Jun 22 13:19:52 2006 +0900
+++ b/mercurial/remoterepo.py Wed Jun 21 22:45:29 2006 -0700
@@ -6,6 +6,9 @@
# of the GNU General Public License, incorporated herein by reference.
class remoterepository(object):
+ def dev(self):
+ return -1
+
def local(self):
return False
--- a/mercurial/sshrepo.py Thu Jun 22 13:19:52 2006 +0900
+++ b/mercurial/sshrepo.py Wed Jun 21 22:45:29 2006 -0700
@@ -79,9 +79,6 @@
except:
pass
- def dev(self):
- return -1
-
def do_cmd(self, cmd, **args):
self.ui.debug(_("sending %s command\n") % cmd)
self.pipeo.write("%s\n" % cmd)