changeset 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 f9078c6caeb6
children 9ab7eba99fe5
files tests/test-rebase-transaction.t
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-rebase-transaction.t	Thu Mar 08 16:22:25 2018 -0800
+++ b/tests/test-rebase-transaction.t	Thu Mar 08 20:55:51 2018 -0800
@@ -1,8 +1,13 @@
+Rebasing using a single transaction
+
   $ cat >> $HGRCPATH <<EOF
   > [extensions]
   > rebase=
   > drawdag=$TESTDIR/drawdag.py
   > 
+  > [rebase]
+  > singletransaction=True
+  > 
   > [phases]
   > publish=False
   > 
@@ -10,13 +15,9 @@
   > tglog = log -G --template "{rev}: {desc}"
   > EOF
 
-Rebasing using a single transaction
+Check that a simple rebase works
 
-  $ hg init singletr && cd singletr
-  $ cat >> .hg/hgrc <<EOF
-  > [rebase]
-  > singletransaction=True
-  > EOF
+  $ hg init simple && cd simple
   $ hg debugdrawdag <<'EOF'
   >   Z
   >   |