Patchwork [05,of,10] rebase: test for empty dest revision

login
register
mail settings
Submitter Mads Kiilerich
Date Jan. 12, 2014, 4:08 p.m.
Message ID <34f07528358d4bd02fbd.1389542883@localhost.localdomain>
Download mbox | patch
Permalink /patch/3299/
State Superseded
Headers show

Comments

Mads Kiilerich - Jan. 12, 2014, 4:08 p.m.
# HG changeset patch
# User Mads Kiilerich <madski@unity3d.com>
# Date 1384730518 18000
#      Sun Nov 17 18:21:58 2013 -0500
# Node ID 34f07528358d4bd02fbdc966f981e54704953796
# Parent  55325a119cbeea17c2379bbe23f20d6226442a03
rebase: test for empty dest revision
Pierre-Yves David - Jan. 13, 2014, 7:30 a.m.
looks good to me (and apparently independant from 4)

On Sun, Jan 12, 2014 at 05:08:03PM +0100, Mads Kiilerich wrote:
> # HG changeset patch
> # User Mads Kiilerich <madski@unity3d.com>
> # Date 1384730518 18000
> #      Sun Nov 17 18:21:58 2013 -0500
> # Node ID 34f07528358d4bd02fbdc966f981e54704953796
> # Parent  55325a119cbeea17c2379bbe23f20d6226442a03
> rebase: test for empty dest revision
> 
> diff --git a/tests/test-rebase-parameters.t b/tests/test-rebase-parameters.t
> --- a/tests/test-rebase-parameters.t
> +++ b/tests/test-rebase-parameters.t
> @@ -101,6 +101,10 @@ These fail:
>    nothing to rebase - base revset is empty
>    [1]
>  
> +  $ hg rebase --dest '1 & !1'
> +  abort: empty revision set
> +  [255]
> +
>  These work:
>  
>  Rebase with no arguments (from 3 onto 8):
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel

Patch

diff --git a/tests/test-rebase-parameters.t b/tests/test-rebase-parameters.t
--- a/tests/test-rebase-parameters.t
+++ b/tests/test-rebase-parameters.t
@@ -101,6 +101,10 @@  These fail:
   nothing to rebase - base revset is empty
   [1]
 
+  $ hg rebase --dest '1 & !1'
+  abort: empty revision set
+  [255]
+
 These work:
 
 Rebase with no arguments (from 3 onto 8):