Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 15355:dbdb777502dc stable
consistency: use util.realpath instead of os.path.realpath where useful
exceptions:
hg: os.path.realpath used before util can be imported
tests/run-tests.py: may not import mercurial modules
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 24 Oct 2011 13:51:24 +0200 |
parents | 67e92d29ecb5 |
children | 8ec1a2cfd2c0 |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Oct 24 13:54:59 2011 +0200 +++ b/mercurial/commands.py Mon Oct 24 13:51:24 2011 +0200 @@ -344,7 +344,7 @@ raise util.Abort(_('no working directory: please specify a revision')) node = ctx.node() dest = cmdutil.makefilename(repo, dest, node) - if os.path.realpath(dest) == repo.root: + if util.realpath(dest) == repo.root: raise util.Abort(_('repository root cannot be destination')) kind = opts.get('type') or archival.guesskind(dest) or 'files'