##// END OF EJS Templates
localrepo.commit: grab locks before getting the list of files to commit...
Alexis S. L. Carvalho -
r6370:6440e25a default
parent child Browse files
Show More
@@ -752,6 +752,8 b' class localrepository(repo.repository):'
752 if files:
752 if files:
753 files = util.unique(files)
753 files = util.unique(files)
754 try:
754 try:
755 wlock = self.wlock()
756 lock = self.lock()
755 commit = []
757 commit = []
756 remove = []
758 remove = []
757 changed = []
759 changed = []
@@ -810,8 +812,6 b' class localrepository(repo.repository):'
810
812
811 self.hook("precommit", throw=True, parent1=xp1, parent2=xp2)
813 self.hook("precommit", throw=True, parent1=xp1, parent2=xp2)
812
814
813 wlock = self.wlock()
814 lock = self.lock()
815 tr = self.transaction()
815 tr = self.transaction()
816 trp = weakref.proxy(tr)
816 trp = weakref.proxy(tr)
817
817
General Comments 0
You need to be logged in to leave comments. Login now