Show More
@@ -774,10 +774,9 b' class localrepository(repo.repository):' | |||
|
774 | 774 | force = True |
|
775 | 775 | if files: |
|
776 | 776 | files = list(set(files)) |
|
777 | try: | |
|
777 | ||
|
778 | 778 |
|
|
779 | lock = self.lock() | |
|
780 | ||
|
779 | try: | |
|
781 | 780 | p1, p2 = self.dirstate.parents() |
|
782 | 781 | |
|
783 | 782 | if (not force and p2 != nullid and |
@@ -817,7 +816,7 b' class localrepository(repo.repository):' | |||
|
817 | 816 | return r |
|
818 | 817 | |
|
819 | 818 | finally: |
|
820 |
release( |
|
|
819 | wlock.release() | |
|
821 | 820 | |
|
822 | 821 | def commitctx(self, ctx): |
|
823 | 822 | """Add a new revision to current repository. |
@@ -825,15 +824,12 b' class localrepository(repo.repository):' | |||
|
825 | 824 | Revision information is passed in the context.memctx argument. |
|
826 | 825 | commitctx() does not touch the working directory. |
|
827 | 826 | """ |
|
828 | lock = self.lock() | |
|
829 | try: | |
|
830 | 827 |
|
|
831 | 828 |
|
|
832 | finally: | |
|
833 | lock.release() | |
|
834 | 829 | |
|
835 | 830 | def _commitctx(self, ctx, force=False, force_editor=False, empty_ok=False, |
|
836 | 831 | working=True): |
|
832 | lock = self.lock() | |
|
837 | 833 | tr = None |
|
838 | 834 | valid = 0 # don't save the dirstate if this isn't set |
|
839 | 835 | try: |
@@ -958,6 +954,7 b' class localrepository(repo.repository):' | |||
|
958 | 954 | if not valid: # don't save our updated dirstate |
|
959 | 955 | self.dirstate.invalidate() |
|
960 | 956 | del tr |
|
957 | lock.release() | |
|
961 | 958 | |
|
962 | 959 | def walk(self, match, node=None): |
|
963 | 960 | ''' |
General Comments 0
You need to be logged in to leave comments.
Login now