Show More
@@ -1300,6 +1300,15 b' class localrepository(object):' | |||
|
1300 | 1300 | self._wlockref = weakref.ref(l) |
|
1301 | 1301 | return l |
|
1302 | 1302 | |
|
1303 | def _currentlock(self, lockref): | |
|
1304 | """Returns the lock if it's held, or None if it's not.""" | |
|
1305 | if lockref is None: | |
|
1306 | return None | |
|
1307 | l = lockref() | |
|
1308 | if l is None or not l.held: | |
|
1309 | return None | |
|
1310 | return l | |
|
1311 | ||
|
1303 | 1312 | def _filecommit(self, fctx, manifest1, manifest2, linkrev, tr, changelist): |
|
1304 | 1313 | """ |
|
1305 | 1314 | commit an individual file as part of a larger transaction |
General Comments 0
You need to be logged in to leave comments.
Login now