comparison mercurial/localrepo.py @ 8111:dbf20df40eb1

document the locking pattern in localrepo.status
author Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>
date Wed, 22 Apr 2009 02:01:22 +0200
parents 496ae1ea4698
children bbc24c0753a0
comparison
equal deleted inserted replaced
8110:b616f328af9f 8111:dbf20df40eb1
1066 # update dirstate for files that are actually clean 1066 # update dirstate for files that are actually clean
1067 if fixup: 1067 if fixup:
1068 wlock = None 1068 wlock = None
1069 try: 1069 try:
1070 try: 1070 try:
1071 # updating the dirstate is optional
1072 # so we dont wait on the lock
1071 wlock = self.wlock(False) 1073 wlock = self.wlock(False)
1072 for f in fixup: 1074 for f in fixup:
1073 self.dirstate.normal(f) 1075 self.dirstate.normal(f)
1074 except error.LockError: 1076 except error.LockError:
1075 pass 1077 pass