Mercurial > hg
comparison tests/test-rebase-transaction.t @ 36815:f4e9e89330d4
tests: simplify test-rebase-transaction.t
The file was extracted from test-rebase-base.t in 8cef8f7d51d0
(test-rebase-base: clarify it is about the "--base" flag,
2017-10-05). This patch follows up that and clarifies the new file's
purpose and simplifies it a bit.
Differential Revision: https://phab.mercurial-scm.org/D2756
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 08 Mar 2018 20:55:51 -0800 |
parents | 8cef8f7d51d0 |
children | 9ab7eba99fe5 |
comparison
equal
deleted
inserted
replaced
36814:f9078c6caeb6 | 36815:f4e9e89330d4 |
---|---|
1 Rebasing using a single transaction | |
2 | |
1 $ cat >> $HGRCPATH <<EOF | 3 $ cat >> $HGRCPATH <<EOF |
2 > [extensions] | 4 > [extensions] |
3 > rebase= | 5 > rebase= |
4 > drawdag=$TESTDIR/drawdag.py | 6 > drawdag=$TESTDIR/drawdag.py |
7 > | |
8 > [rebase] | |
9 > singletransaction=True | |
5 > | 10 > |
6 > [phases] | 11 > [phases] |
7 > publish=False | 12 > publish=False |
8 > | 13 > |
9 > [alias] | 14 > [alias] |
10 > tglog = log -G --template "{rev}: {desc}" | 15 > tglog = log -G --template "{rev}: {desc}" |
11 > EOF | 16 > EOF |
12 | 17 |
13 Rebasing using a single transaction | 18 Check that a simple rebase works |
14 | 19 |
15 $ hg init singletr && cd singletr | 20 $ hg init simple && cd simple |
16 $ cat >> .hg/hgrc <<EOF | |
17 > [rebase] | |
18 > singletransaction=True | |
19 > EOF | |
20 $ hg debugdrawdag <<'EOF' | 21 $ hg debugdrawdag <<'EOF' |
21 > Z | 22 > Z |
22 > | | 23 > | |
23 > | D | 24 > | D |
24 > | | | 25 > | | |