Patchwork D2756: tests: simplify test-rebase-transaction.t

login
register
mail settings
Submitter phabricator
Date March 9, 2018, 6:36 p.m.
Message ID <differential-rev-PHID-DREV-5ieiykwuxbixoq6jj5as-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/29178/
State Superseded
Headers show

Comments

phabricator - March 9, 2018, 6:36 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The file was extracted from test-rebase-base.t in https://phab.mercurial-scm.org/rHG8cef8f7d51d0f1e99889779ec1320d5c9c3b91de
  (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.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2756

AFFECTED FILES
  tests/test-rebase-transaction.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-rebase-transaction.t b/tests/test-rebase-transaction.t
--- a/tests/test-rebase-transaction.t
+++ b/tests/test-rebase-transaction.t
@@ -1,22 +1,23 @@ 
+Rebasing using a single transaction
+
   $ cat >> $HGRCPATH <<EOF
   > [extensions]
   > rebase=
   > drawdag=$TESTDIR/drawdag.py
   > 
+  > [rebase]
+  > singletransaction=True
+  > 
   > [phases]
   > publish=False
   > 
   > [alias]
   > 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
   >   |