Show More
@@ -805,6 +805,12 b' def rebase(ui, repo, **opts):' | |||
|
805 | 805 | inmemory = ui.configbool('rebase', 'experimental.inmemory') |
|
806 | 806 | dryrun = opts.get('dry_run') |
|
807 | 807 | stop = opts.get('stop') |
|
808 | if stop: | |
|
809 | if opts.get('dry_run') or opts.get('confirm'): | |
|
810 | raise error.Abort(_('cannot use --stop with --dry-run ' | |
|
811 | 'or --confirm')) | |
|
812 | if opts.get('abort') or opts.get('continue'): | |
|
813 | raise error.Abort(_('cannot use --stop with --abort or --continue')) | |
|
808 | 814 | if dryrun: |
|
809 | 815 | if opts.get('abort'): |
|
810 | 816 | raise error.Abort(_('cannot specify both --dry-run and --abort')) |
@@ -841,7 +847,6 b' def rebase(ui, repo, **opts):' | |||
|
841 | 847 | rbsrt = rebaseruntime(repo, ui) |
|
842 | 848 | rbsrt.restorestatus() |
|
843 | 849 | |
|
844 | #todo: raise error for conflicting options | |
|
845 | 850 | if rbsrt.collapsef: |
|
846 | 851 | raise error.Abort(_("cannot stop in --collapse session")) |
|
847 | 852 | allowunstable = obsolete.isenabled(repo, obsolete.allowunstableopt) |
@@ -2003,3 +2003,22 b' Test --stop aborts when --collapse was p' | |||
|
2003 | 2003 | o 0:cb9a9f314b8b test |
|
2004 | 2004 | a |
|
2005 | 2005 | |
|
2006 | Test --stop raise errors with conflicting options: | |
|
2007 | ================================================= | |
|
2008 | $ hg rebase -s 3 -d 5 | |
|
2009 | rebasing 3:055a42cdd887 "d" | |
|
2010 | merging d | |
|
2011 | warning: conflicts while merging d! (edit, then use 'hg resolve --mark') | |
|
2012 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
|
2013 | [1] | |
|
2014 | $ hg rebase --stop --dry-run | |
|
2015 | abort: cannot use --stop with --dry-run or --confirm | |
|
2016 | [255] | |
|
2017 | ||
|
2018 | $ hg rebase -s 3 -d 5 | |
|
2019 | abort: rebase in progress | |
|
2020 | (use 'hg rebase --continue' or 'hg rebase --abort') | |
|
2021 | [255] | |
|
2022 | $ hg rebase --stop --continue | |
|
2023 | abort: cannot use --stop with --abort or --continue | |
|
2024 | [255] |
General Comments 0
You need to be logged in to leave comments.
Login now