comparison 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
comparison
equal deleted inserted replaced
1490:c3ffdb2c4091 1491:91c0e8d7ddcf
378 continue 378 continue
379 if src == 'm': 379 if src == 'm':
380 nonexistent = True 380 nonexistent = True
381 if not st: 381 if not st:
382 try: 382 try:
383 st = os.lstat(fn) 383 f = os.path.join(self.root, fn)
384 st = os.lstat(f)
384 except OSError, inst: 385 except OSError, inst:
385 if inst.errno != errno.ENOENT: 386 if inst.errno != errno.ENOENT:
386 raise 387 raise
387 st = None 388 st = None
388 # We need to re-check that it is a valid file 389 # We need to re-check that it is a valid file