##// END OF EJS Templates
remove duplicate code.
Vadim Gelfer -
r2484:eabcda3e default
parent child Browse files
Show More
@@ -176,9 +176,6 b' class httprepository(remoterepository):'
176
176
177 capabilities = property(get_caps)
177 capabilities = property(get_caps)
178
178
179 def dev(self):
180 return -1
181
182 def lock(self):
179 def lock(self):
183 raise util.Abort(_('operation not supported over http'))
180 raise util.Abort(_('operation not supported over http'))
184
181
@@ -6,6 +6,9 b''
6 # of the GNU General Public License, incorporated herein by reference.
6 # of the GNU General Public License, incorporated herein by reference.
7
7
8 class remoterepository(object):
8 class remoterepository(object):
9 def dev(self):
10 return -1
11
9 def local(self):
12 def local(self):
10 return False
13 return False
11
14
@@ -79,9 +79,6 b' class sshrepository(remoterepository):'
79 except:
79 except:
80 pass
80 pass
81
81
82 def dev(self):
83 return -1
84
85 def do_cmd(self, cmd, **args):
82 def do_cmd(self, cmd, **args):
86 self.ui.debug(_("sending %s command\n") % cmd)
83 self.ui.debug(_("sending %s command\n") % cmd)
87 self.pipeo.write("%s\n" % cmd)
84 self.pipeo.write("%s\n" % cmd)
General Comments 0
You need to be logged in to leave comments. Login now