[PATCH 3 of 5] document the locking pattern in localrepo.status

Ronny Pfannschmidt Ronny.Pfannschmidt at gmx.de
Mon Apr 20 17:43:32 CDT 2009


# HG changeset patch
# User Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de>
# Date 1240264616 -7200
# Node ID 5ce337dc5299d69cd5b474cbede2570488951428
# Parent  905d1f701a244ad7537d2baf3015957ebdb96436
document the locking pattern in localrepo.status

diff -r 905d1f701a24 -r 5ce337dc5299 mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Apr 20 23:34:05 2009 +0200
+++ b/mercurial/localrepo.py	Mon Apr 20 23:56:56 2009 +0200
@@ -1068,6 +1068,8 @@ class localrepository(repo.repository):
                     wlock = None
                     try:
                         try:
+                            # updating the dirstate is optional
+                            # so we dont wait on the lock
                             wlock = self.wlock(False)
                             for f in fixup:
                                 self.dirstate.normal(f)


More information about the Mercurial-devel mailing list