Mercurial > public > mercurial-scm > hg
diff mercurial/dirstate.py @ 1491:91c0e8d7ddcf
fix a bug in dirstate.changes when cwd != repo.root
- use lstat instead of stat
- add a testcase (thanks to Johannes Hofmann)
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 02 Nov 2005 16:13:41 -0800 |
parents | 08c7851969cc |
children | 755e7ac351ef |
line wrap: on
line diff
--- a/mercurial/dirstate.py Wed Nov 02 16:13:34 2005 -0800 +++ b/mercurial/dirstate.py Wed Nov 02 16:13:41 2005 -0800 @@ -380,7 +380,8 @@ nonexistent = True if not st: try: - st = os.lstat(fn) + f = os.path.join(self.root, fn) + st = os.lstat(f) except OSError, inst: if inst.errno != errno.ENOENT: raise