mercurial/cmdutil.py
changeset 4232 0d51eb296fb9
parent 4209 dbc3846c09a1
parent 4229 24c22a3f2ef8
child 4353 1ccd3b9a7b1f
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -138,7 +138,7 @@ def walk(repo, pats=[], opts={}, node=No
     exact = dict.fromkeys(files)
     for src, fn in repo.walk(node=node, files=files, match=matchfn,
                              badmatch=badmatch):
-        yield src, fn, util.pathto(repo.getcwd(), fn), fn in exact
+        yield src, fn, util.pathto(repo.root, repo.getcwd(), fn), fn in exact
 
 def findrenames(repo, added=None, removed=None, threshold=0.5):
     '''find renamed files -- yields (before, after, score) tuples'''