Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dirstate.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 | 7e1c8a565a4f |
children | c93562fb12cc |
line wrap: on
line diff
--- a/mercurial/dirstate.py Fri Mar 16 00:22:55 2007 -0300 +++ b/mercurial/dirstate.py Fri Mar 16 00:22:57 2007 -0300 @@ -363,7 +363,7 @@ elif stat.S_ISSOCK(st.st_mode): kind = _('socket') elif stat.S_ISDIR(st.st_mode): kind = _('directory') self.ui.warn(_('%s: unsupported file type (type is %s)\n') % ( - util.pathto(self.getcwd(), f), + util.pathto(self.root, self.getcwd(), f), kind)) return False @@ -466,7 +466,7 @@ if not found: if inst.errno != errno.ENOENT or not badmatch: self.ui.warn('%s: %s\n' % ( - util.pathto(self.getcwd(), ff), + util.pathto(self.root, self.getcwd(), ff), inst.strerror)) elif badmatch and badmatch(ff) and imatch(nf): yield 'b', ff, None