##// END OF EJS Templates
histedit: mention histedit-last-edit.txt on abort...
timeless -
r27171:3028ea0a default
parent child Browse files
Show More
@@ -829,6 +829,11 b' def histedit(ui, repo, *freeargs, **opts'
829 829 state.wlock = repo.wlock()
830 830 state.lock = repo.lock()
831 831 _histedit(ui, repo, state, *freeargs, **opts)
832 except error.Abort:
833 if repo.vfs.exists('histedit-last-edit.txt'):
834 ui.warn(_('warning: histedit rules saved '
835 'to: .hg/histedit-last-edit.txt\n'))
836 raise
832 837 finally:
833 838 release(state.lock, state.wlock)
834 839
@@ -957,6 +962,8 b' def _histedit(ui, repo, state, *freeargs'
957 962 cmdutil.checkunfinished(repo)
958 963 cmdutil.bailifchanged(repo)
959 964
965 if repo.vfs.exists('histedit-last-edit.txt'):
966 repo.vfs.unlink('histedit-last-edit.txt')
960 967 topmost, empty = repo.dirstate.parents()
961 968 if outg:
962 969 if freeargs:
@@ -460,8 +460,24 b' Attempting to fold a change into a publi'
460 460 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
461 461 reverting a
462 462 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
463 warning: histedit rules saved to: .hg/histedit-last-edit.txt
463 464 abort: cannot fold into public change 18aa70c8ad22
464 465 [255]
466 $ cat .hg/histedit-last-edit.txt
467 fold 0012be4a27ea 2 extend a
468
469 # Edit history between 0012be4a27ea and 0012be4a27ea
470 #
471 # Commits are listed from least to most recent
472 #
473 # Commands:
474 # p, fold = use commit
475 # e, edit = use commit, but stop for amending
476 # f, fold = use commit, but combine it with the one above
477 # r, roll = like fold, but discard this commit's description
478 # d, drop = remove commit from history
479 # m, mess = edit commit message without changing commit content
480 #
465 481 TODO: this abort shouldn't be required, but it is for now to leave the repo in
466 482 a clean state.
467 483 $ hg histedit --abort
General Comments 0
You need to be logged in to leave comments. Login now