comparison mercurial/localrepo.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 3be4785f8994
children 0d51eb296fb9 fe7f38dda34b
comparison
equal deleted inserted replaced
4228:c52b7176af94 4229:24c22a3f2ef8
851 if badmatch and badmatch(fn): 851 if badmatch and badmatch(fn):
852 if match(fn): 852 if match(fn):
853 yield 'b', fn 853 yield 'b', fn
854 else: 854 else:
855 self.ui.warn(_('%s: No such file in rev %s\n') % ( 855 self.ui.warn(_('%s: No such file in rev %s\n') % (
856 util.pathto(self.getcwd(), fn), short(node))) 856 util.pathto(self.root, self.getcwd(), fn), short(node)))
857 else: 857 else:
858 for src, fn in self.dirstate.walk(files, match, badmatch=badmatch): 858 for src, fn in self.dirstate.walk(files, match, badmatch=badmatch):
859 yield src, fn 859 yield src, fn
860 860
861 def status(self, node1=None, node2=None, files=[], match=util.always, 861 def status(self, node1=None, node2=None, files=[], match=util.always,