##// END OF EJS Templates
shelve: use tryunlink
Ryan McElroy -
r31543:d5758760 default
parent child Browse files
Show More
@@ -236,11 +236,7 b' def cleanupoldbackups(repo):'
236 continue
236 continue
237 base = f[:-(1 + len(patchextension))]
237 base = f[:-(1 + len(patchextension))]
238 for ext in shelvefileextensions:
238 for ext in shelvefileextensions:
239 try:
239 vfs.tryunlink(base + '.' + ext)
240 vfs.unlink(base + '.' + ext)
241 except OSError as err:
242 if err.errno != errno.ENOENT:
243 raise
244
240
245 def _aborttransaction(repo):
241 def _aborttransaction(repo):
246 '''Abort current transaction for shelve/unshelve, but keep dirstate
242 '''Abort current transaction for shelve/unshelve, but keep dirstate
General Comments 0
You need to be logged in to leave comments. Login now