Mercurial > public > mercurial-scm > hg
diff mercurial/sshrepo.py @ 3084:75dcfe28da4a
sshrepo: don't try to validate when creating the repo
- This removes the "repo not found" error when cloning or init-ing a remote
repo.
- Since the remote hg will abort if the repo already exists we don't need to
validate it.
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 13 Sep 2006 19:57:40 +0200 |
parents | adf7f3421c55 |
children | 7ae37d99d47e |
line wrap: on
line diff
--- a/mercurial/sshrepo.py Wed Sep 13 08:57:08 2006 -0700 +++ b/mercurial/sshrepo.py Wed Sep 13 19:57:40 2006 +0200 @@ -32,13 +32,6 @@ remotecmd = self.ui.config("ui", "remotecmd", "hg") if create: - try: - self.validate_repo(ui, sshcmd, args, remotecmd) - 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)