diff tests/test-update-dest.t @ 31844:478999e8281d

tests: move update requiredest test to own test file More tests for this flag are coming in upcoming patches.
author Ryan McElroy <rmcelroy@fb.com>
date Fri, 07 Apr 2017 05:41:03 -0700
parents
children 86246530b8d2
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-update-dest.t	Fri Apr 07 05:41:03 2017 -0700
@@ -0,0 +1,23 @@
+Test update.requiredest
+  $ cd $TESTTMP
+  $ cat >> $HGRCPATH <<EOF
+  > [commands]
+  > update.requiredest = True
+  > EOF
+  $ hg init repo
+  $ cd repo
+  $ echo a >> a
+  $ hg commit -qAm aa
+  $ hg up
+  abort: you must specify a destination
+  (for example: hg update ".::")
+  [255]
+  $ hg up .
+  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
+
+  $ cd ..
+