##// END OF EJS Templates
shelve: fix a missing variable in the exception handler for delete...
Matt Harbison -
r44123:cb23d9e3 stable
parent child Browse files
Show More
@@ -603,8 +603,8 b' def deletecmd(ui, repo, pats):'
603 603 if not pats:
604 604 raise error.Abort(_(b'no shelved changes specified!'))
605 605 with repo.wlock():
606 for name in pats:
606 607 try:
607 for name in pats:
608 608 for suffix in shelvefileextensions:
609 609 shfile = shelvedfile(repo, name, suffix)
610 610 # patch file is necessary, as it should
@@ -614,11 +614,11 b' def deletecmd(ui, repo, pats):'
614 614 # bundle
615 615 if shfile.exists() or suffix == patchextension:
616 616 shfile.movetobackup()
617 cleanupoldbackups(repo)
618 617 except OSError as err:
619 618 if err.errno != errno.ENOENT:
620 619 raise
621 620 raise error.Abort(_(b"shelved change '%s' not found") % name)
621 cleanupoldbackups(repo)
622 622
623 623
624 624 def listshelves(repo):
General Comments 0
You need to be logged in to leave comments. Login now