diff -r ee47e951c6f9 -r c2bd2f77965b tests/test-rebase-pull.t --- a/tests/test-rebase-pull.t Fri Jan 06 22:50:04 2017 +0900 +++ b/tests/test-rebase-pull.t Sun Jan 01 13:16:29 2017 +0100 @@ -1,6 +1,7 @@ $ cat >> $HGRCPATH < [extensions] > rebase= + > histedit= > > [alias] > tglog = log -G --template "{rev}: '{desc}' {branches}\n" @@ -72,6 +73,27 @@ searching for changes no changes found +Abort pull early if working dir is not clean: + + $ echo L1-mod > L1 + $ hg pull --rebase + abort: uncommitted changes + [255] + $ hg update --clean --quiet + +Abort pull early if another operation (histedit) is in progress: + + $ hg histedit . -q --commands - << EOF + > edit d80cc2da061e histedit: generate unfinished state + > EOF + Editing (d80cc2da061e), you may commit or record as needed now. + (hg histedit --continue to resume) + [1] + $ hg pull --rebase + abort: histedit in progress + (use 'hg histedit --continue' or 'hg histedit --abort') + [255] + $ hg histedit --abort --quiet Invoke pull --rebase and nothing to rebase: