diff mercurial/commands.py @ 15381:c519cd8f0169 stable

backout dbdb777502dc (issue3077) (issue3071) Using util.realpath turns out to create complex issues on both Mac and Windows. Back this change out for the release.
author Matt Mackall <mpm@selenic.com>
date Sat, 29 Oct 2011 11:02:23 -0500
parents 9a2582e325a5
children c1eb8398fe82 e1005da0ae04
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Oct 28 15:00:21 2011 +0200
+++ b/mercurial/commands.py	Sat Oct 29 11:02:23 2011 -0500
@@ -344,7 +344,7 @@
         raise util.Abort(_('no working directory: please specify a revision'))
     node = ctx.node()
     dest = cmdutil.makefilename(repo, dest, node)
-    if util.realpath(dest) == repo.root:
+    if os.path.realpath(dest) == repo.root:
         raise util.Abort(_('repository root cannot be destination'))
 
     kind = opts.get('type') or archival.guesskind(dest) or 'files'