changeset 2484:eabcda3ed0dd

remove duplicate code.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Wed, 21 Jun 2006 22:45:29 -0700
parents 5583d5ef257e
children 885de96eb542
files mercurial/httprepo.py mercurial/remoterepo.py mercurial/sshrepo.py
diffstat 3 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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)