tests/test-rebase-inmemory.t
changeset 45827 8d72e29ad1e0
parent 45826 21733e8c924f
child 45840 527ce85c2e60
equal deleted inserted replaced
45826:21733e8c924f 45827:8d72e29ad1e0
   331      a
   331      a
   332   
   332   
   333 Make sure it throws error while passing --continue or --abort with --dry-run
   333 Make sure it throws error while passing --continue or --abort with --dry-run
   334   $ hg rebase -s 2 -d 6 -n --continue
   334   $ hg rebase -s 2 -d 6 -n --continue
   335   abort: cannot specify both --continue and --dry-run
   335   abort: cannot specify both --continue and --dry-run
   336   [255]
   336   [10]
   337   $ hg rebase -s 2 -d 6 -n --abort
   337   $ hg rebase -s 2 -d 6 -n --abort
   338   abort: cannot specify both --abort and --dry-run
   338   abort: cannot specify both --abort and --dry-run
   339   [255]
   339   [10]
   340 
   340 
   341 Check dryrun gives correct results when there is no conflict in rebasing
   341 Check dryrun gives correct results when there is no conflict in rebasing
   342   $ hg rebase -s 2 -d 6 -n
   342   $ hg rebase -s 2 -d 6 -n
   343   starting dry-run rebase; repository will not be changed
   343   starting dry-run rebase; repository will not be changed
   344   rebasing 2:177f92b77385 "c"
   344   rebasing 2:177f92b77385 "c"
   537      a
   537      a
   538   
   538   
   539 Check it gives error when both --dryrun and --confirm is used:
   539 Check it gives error when both --dryrun and --confirm is used:
   540   $ hg rebase -s 2 -d . --confirm --dry-run
   540   $ hg rebase -s 2 -d . --confirm --dry-run
   541   abort: cannot specify both --confirm and --dry-run
   541   abort: cannot specify both --confirm and --dry-run
   542   [255]
   542   [10]
   543   $ hg rebase -s 2 -d . --confirm --abort
   543   $ hg rebase -s 2 -d . --confirm --abort
   544   abort: cannot specify both --abort and --confirm
   544   abort: cannot specify both --abort and --confirm
   545   [255]
   545   [10]
   546   $ hg rebase -s 2 -d . --confirm --continue
   546   $ hg rebase -s 2 -d . --confirm --continue
   547   abort: cannot specify both --continue and --confirm
   547   abort: cannot specify both --continue and --confirm
   548   [255]
   548   [10]
   549 
   549 
   550 Test --confirm option when there are no conflicts:
   550 Test --confirm option when there are no conflicts:
   551   $ hg rebase -s 2 -d . --keep --config ui.interactive=True --confirm << EOF
   551   $ hg rebase -s 2 -d . --keep --config ui.interactive=True --confirm << EOF
   552   > n
   552   > n
   553   > EOF
   553   > EOF