##// END OF EJS Templates
commit: move lots of commitctx outside of the repo lock
Matt Mackall -
r8411:4d591635 default
parent child Browse files
Show More
@@ -826,10 +826,9 class localrepository(repo.repository):
826 826 If working is set, the working directory is affected.
827 827 """
828 828
829 lock = self.lock()
830 829 tr = None
831 830 valid = 0 # don't save the dirstate if this isn't set
832 try:
831 lock = None
833 832 commit = sorted(ctx.modified() + ctx.added())
834 833 remove = ctx.removed()
835 834 extra = ctx.extra().copy()
@@ -846,9 +845,10 class localrepository(repo.repository):
846 845 xp1 = hex(p1)
847 846 if p2 == nullid: xp2 = ''
848 847 else: xp2 = hex(p2)
849
850 848 self.hook("precommit", throw=True, parent1=xp1, parent2=xp2)
851 849
850 lock = self.lock()
851 try:
852 852 tr = self.transaction()
853 853 trp = weakref.proxy(tr)
854 854
General Comments 0
You need to be logged in to leave comments. Login now