--- a/mercurial/sshrepo.py Tue Jul 25 21:22:56 2006 +0200
+++ b/mercurial/sshrepo.py Tue Jul 25 13:50:32 2006 -0700
@@ -13,7 +13,7 @@
class sshrepository(remoterepository):
def __init__(self, ui, path, create=0):
- self.url = path
+ self._url = path
self.ui = ui
m = re.match(r'ssh://(([^@]+)@)?([^:/]+)(:(\d+))?(/(.*))?', path)
@@ -48,6 +48,9 @@
self.validate_repo(ui, sshcmd, args, remotecmd)
+ def url(self):
+ return self._url
+
def validate_repo(self, ui, sshcmd, args, remotecmd):
cmd = '%s %s "%s -R %s serve --stdio"'
cmd = cmd % (sshcmd, args, remotecmd, self.path)
@@ -180,7 +183,7 @@
return 1
return int(r)
- def addchangegroup(self, cg, source):
+ def addchangegroup(self, cg, source, url):
d = self.call("addchangegroup")
if d:
raise hg.RepoError(_("push refused: %s") % d)