Show More
@@ -1447,8 +1447,7 class workingctx(committablectx): | |||||
1447 |
|
1447 | |||
1448 | def forget(self, files, prefix=""): |
|
1448 | def forget(self, files, prefix=""): | |
1449 | join = lambda f: os.path.join(prefix, f) |
|
1449 | join = lambda f: os.path.join(prefix, f) | |
1450 |
w |
|
1450 | with self._repo.wlock(): | |
1451 | try: |
|
|||
1452 | rejected = [] |
|
1451 | rejected = [] | |
1453 | for f in files: |
|
1452 | for f in files: | |
1454 | if f not in self._repo.dirstate: |
|
1453 | if f not in self._repo.dirstate: | |
@@ -1459,8 +1458,6 class workingctx(committablectx): | |||||
1459 | else: |
|
1458 | else: | |
1460 | self._repo.dirstate.drop(f) |
|
1459 | self._repo.dirstate.drop(f) | |
1461 | return rejected |
|
1460 | return rejected | |
1462 | finally: |
|
|||
1463 | wlock.release() |
|
|||
1464 |
|
1461 | |||
1465 | def undelete(self, list): |
|
1462 | def undelete(self, list): | |
1466 | pctxs = self.parents() |
|
1463 | pctxs = self.parents() |
General Comments 0
You need to be logged in to leave comments.
Login now