Patchwork [1,of,2] tests: add tests with commands.{update, rebase}.requiredest=False

login
register
mail settings
Submitter via Mercurial-devel
Date March 24, 2017, 11:35 p.m.
Message ID <d2674430b3d3eea1259e.1490398507@martinvonz.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/19650/
State Accepted
Headers show

Comments

via Mercurial-devel - March 24, 2017, 11:35 p.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@google.com>
# Date 1490397604 25200
#      Fri Mar 24 16:20:04 2017 -0700
# Node ID d2674430b3d3eea1259e4fe2c1d7da539db9454f
# Parent  6359976b43be2024191a68a9605db9a378d2cce0
tests: add tests with commands.{update,rebase}.requiredest=False

This shows how rebase is currently broken with
commands.rebase.requiredest=False.

Patch

diff -r 6359976b43be -r d2674430b3d3 tests/test-rebase-base.t
--- a/tests/test-rebase-base.t	Mon Mar 20 17:58:44 2017 -0400
+++ b/tests/test-rebase-base.t	Fri Mar 24 16:20:04 2017 -0700
@@ -417,3 +417,8 @@ 
   $ HGPLAIN=1 hg rebase
   rebasing 2:889b0bc6a730 "cc" (tip)
   saved backup bundle to $TESTTMP/repo/.hg/strip-backup/889b0bc6a730-41ec4f81-backup.hg (glob)
+  $ hg rebase -d 0 -r . -q
+  $ hg --config commands.rebase.requiredest=False rebase
+  abort: you must specify a destination
+  (use: hg rebase -d REV)
+  [255]
diff -r 6359976b43be -r d2674430b3d3 tests/test-update-names.t
--- a/tests/test-update-names.t	Mon Mar 20 17:58:44 2017 -0400
+++ b/tests/test-update-names.t	Fri Mar 24 16:20:04 2017 -0700
@@ -106,3 +106,5 @@ 
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ HGPLAIN=1 hg up
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg --config commands.update.requiredest=False up
+  0 files updated, 0 files merged, 0 files removed, 0 files unresolved