remove duplicate code.
authorVadim Gelfer <vadim.gelfer@gmail.com>
Wed, 21 Jun 2006 22:45:29 -0700
changeset 2484 eabcda3ed0dd
parent 2483 5583d5ef257e
child 2485 885de96eb542
remove duplicate code.
mercurial/httprepo.py
mercurial/remoterepo.py
mercurial/sshrepo.py
--- 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)