Show More
@@ -1099,7 +1099,7 b' def storecollapsemsg(repo, collapsemsg):' | |||
|
1099 | 1099 | |
|
1100 | 1100 | def clearcollapsemsg(repo): |
|
1101 | 1101 | 'Remove collapse message file' |
|
1102 |
|
|
|
1102 | repo.vfs.unlinkpath("last-message.txt", ignoremissing=True) | |
|
1103 | 1103 | |
|
1104 | 1104 | def restorecollapsemsg(repo, isabort): |
|
1105 | 1105 | 'Restore previously stored collapse message' |
@@ -1120,7 +1120,7 b' def restorecollapsemsg(repo, isabort):' | |||
|
1120 | 1120 | def clearstatus(repo): |
|
1121 | 1121 | 'Remove the status files' |
|
1122 | 1122 | _clearrebasesetvisibiliy(repo) |
|
1123 |
|
|
|
1123 | repo.vfs.unlinkpath("rebasestate", ignoremissing=True) | |
|
1124 | 1124 | |
|
1125 | 1125 | def needupdate(repo, state): |
|
1126 | 1126 | '''check whether we should `update --clean` away from a merge, or if |
@@ -218,7 +218,7 b' class shelvedstate(object):' | |||
|
218 | 218 | |
|
219 | 219 | @classmethod |
|
220 | 220 | def clear(cls, repo): |
|
221 |
|
|
|
221 | repo.vfs.unlinkpath(cls._filename, ignoremissing=True) | |
|
222 | 222 | |
|
223 | 223 | def cleanupoldbackups(repo): |
|
224 | 224 | vfs = vfsmod.vfs(repo.join(backupdir)) |
@@ -2383,7 +2383,7 b' def _dograft(ui, repo, *revs, **opts):' | |||
|
2383 | 2383 | |
|
2384 | 2384 | # remove state when we complete successfully |
|
2385 | 2385 | if not opts.get('dry_run'): |
|
2386 |
|
|
|
2386 | repo.vfs.unlinkpath('graftstate', ignoremissing=True) | |
|
2387 | 2387 | |
|
2388 | 2388 | return 0 |
|
2389 | 2389 |
@@ -716,7 +716,7 b' def update(repo, node, quietempty=False,' | |||
|
716 | 716 | def clean(repo, node, show_stats=True, quietempty=False): |
|
717 | 717 | """forcibly switch the working directory to node, clobbering changes""" |
|
718 | 718 | stats = updaterepo(repo, node, True) |
|
719 |
|
|
|
719 | repo.vfs.unlinkpath('graftstate', ignoremissing=True) | |
|
720 | 720 | if show_stats: |
|
721 | 721 | _showstats(repo, stats, quietempty) |
|
722 | 722 | return stats[3] > 0 |
General Comments 0
You need to be logged in to leave comments.
Login now