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