comparison tests/test-rebase-dest.t @ 31729:c069c4e271e3

rebase: move destination test to new test file We'll be adding a lot more tests here, so it makes sense to have this in its own file now.
author Ryan McElroy <rmcelroy@fb.com>
date Thu, 30 Mar 2017 03:50:10 -0700
parents
children 6931c3346551
comparison
equal deleted inserted replaced
31728:35eb8f112c88 31729:c069c4e271e3
1 Require a destination
2 $ cat >> $HGRCPATH <<EOF
3 > [extensions]
4 > rebase =
5 > [commands]
6 > rebase.requiredest = True
7 > EOF
8 $ hg init repo
9 $ cd repo
10 $ echo a >> a
11 $ hg commit -qAm aa
12 $ echo b >> b
13 $ hg commit -qAm bb
14 $ hg up ".^"
15 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
16 $ echo c >> c
17 $ hg commit -qAm cc
18 $ hg rebase
19 abort: you must specify a destination
20 (use: hg rebase -d REV)
21 [255]
22 $ hg rebase -d 1
23 rebasing 2:5db65b93a12b "cc" (tip)
24 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/5db65b93a12b-4fb789ec-backup.hg (glob)
25 $ hg rebase -d 0 -r . -q
26 $ HGPLAIN=1 hg rebase
27 rebasing 2:889b0bc6a730 "cc" (tip)
28 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/889b0bc6a730-41ec4f81-backup.hg (glob)
29 $ hg rebase -d 0 -r . -q
30 $ hg --config commands.rebase.requiredest=False rebase
31 rebasing 2:279de9495438 "cc" (tip)
32 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/279de9495438-ab0a5128-backup.hg (glob)
33