comparison mercurial/dispatch.py @ 14914:41c3a71c318d stable

dispatch: avoid double backslashes in error message The use of %r in the format string caused Python to display Windows paths with double backslashes.
author David Golub <davidg@fogcreek.com>
date Thu, 21 Jul 2011 16:02:34 -0400
parents 1c148e935244
children ebdfdba0faaf 188936b334b1
comparison
equal deleted inserted replaced
14903:a934b9249574 14914:41c3a71c318d
656 guess = repos[0] 656 guess = repos[0]
657 if guess and repos.count(guess) == len(repos): 657 if guess and repos.count(guess) == len(repos):
658 req.args = ['--repository', guess] + fullargs 658 req.args = ['--repository', guess] + fullargs
659 return _dispatch(req) 659 return _dispatch(req)
660 if not path: 660 if not path:
661 raise error.RepoError(_("no repository found in %r" 661 raise error.RepoError(_("no repository found in '%s'"
662 " (.hg not found)") % os.getcwd()) 662 " (.hg not found)") % os.getcwd())
663 raise 663 raise
664 if repo: 664 if repo:
665 ui = repo.ui 665 ui = repo.ui
666 args.insert(0, repo) 666 args.insert(0, repo)