branch | stable |
changeset 15355 | dbdb777502dc |
parent 15327 | 67e92d29ecb5 |
child 15357 | 8ec1a2cfd2c0 |
--- 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'