comparison mercurial/cmdutil.py @ 4229:24c22a3f2ef8

pass repo.root to util.pathto() in preparation for the next patch
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 16 Mar 2007 00:22:57 -0300
parents f9bbcebcacea
children 0d51eb296fb9 3380eb6d7c32
comparison
equal deleted inserted replaced
4228:c52b7176af94 4229:24c22a3f2ef8
143 files, matchfn, anypats = matchpats(repo, pats, opts, head, 143 files, matchfn, anypats = matchpats(repo, pats, opts, head,
144 globbed=globbed) 144 globbed=globbed)
145 exact = dict.fromkeys(files) 145 exact = dict.fromkeys(files)
146 for src, fn in repo.walk(node=node, files=files, match=matchfn, 146 for src, fn in repo.walk(node=node, files=files, match=matchfn,
147 badmatch=badmatch): 147 badmatch=badmatch):
148 yield src, fn, util.pathto(repo.getcwd(), fn), fn in exact 148 yield src, fn, util.pathto(repo.root, repo.getcwd(), fn), fn in exact
149 149
150 def findrenames(repo, added=None, removed=None, threshold=0.5): 150 def findrenames(repo, added=None, removed=None, threshold=0.5):
151 if added is None or removed is None: 151 if added is None or removed is None:
152 added, removed = repo.status()[1:3] 152 added, removed = repo.status()[1:3]
153 changes = repo.changelog.read(repo.dirstate.parents()[0]) 153 changes = repo.changelog.read(repo.dirstate.parents()[0])