Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 4667:c7a81e3ae80f
identify: work with remote repos
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 21 Jun 2007 11:54:16 -0500 |
parents | e0e73ba37983 |
children | 850950e59b52 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Thu Jun 21 11:54:13 2007 -0500 +++ b/mercurial/cmdutil.py Thu Jun 21 11:54:16 2007 -0500 @@ -316,7 +316,7 @@ try: repo = hg.repository(ui, path=path) ui = repo.ui - if not repo.local(): + if not repo.local() and cmd not in commands.remoterepo.split(): raise util.Abort(_("repository '%s' is not local") % path) except hg.RepoError: if cmd not in commands.optionalrepo.split():