changeset 3036 | adf7f3421c55 |
parent 3034 | 2b0bc36a48d8 |
child 3084 | 75dcfe28da4a |
--- a/mercurial/sshrepo.py Sat Sep 02 23:06:47 2006 +0200 +++ b/mercurial/sshrepo.py Sat Sep 02 23:14:35 2006 +0200 @@ -34,9 +34,10 @@ if create: try: self.validate_repo(ui, sshcmd, args, remotecmd) - return # the repo is good, nothing more to do except hg.RepoError: pass + else: + raise hg.RepoError(_("repository %s already exists") % path) cmd = '%s %s "%s init %s"' cmd = cmd % (sshcmd, args, remotecmd, self.path)