# HG changeset patch # User Vadim Gelfer # Date 1150955129 25200 # Node ID eabcda3ed0dddff5b785eaf4795ab7d42afdbc98 # Parent 5583d5ef257e5bab0413ce3d1afc59d1c73ca9ff remove duplicate code. diff -r 5583d5ef257e -r eabcda3ed0dd mercurial/httprepo.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')) diff -r 5583d5ef257e -r eabcda3ed0dd mercurial/remoterepo.py --- 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 diff -r 5583d5ef257e -r eabcda3ed0dd mercurial/sshrepo.py --- 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)