diff tests/test-update-dest.t @ 31845:86246530b8d2

pull: abort pull --update if config requires destination (issue5528)
author Ryan McElroy <rmcelroy@fb.com>
date Fri, 07 Apr 2017 06:31:50 -0700
parents 478999e8281d
children 8abbae93045a
line wrap: on
line diff
--- a/tests/test-update-dest.t	Fri Apr 07 05:41:03 2017 -0700
+++ b/tests/test-update-dest.t	Fri Apr 07 06:31:50 2017 -0700
@@ -21,3 +21,15 @@
 
   $ cd ..
 
+Check update.requiredest interaction with pull --update
+  $ hg clone repo clone
+  updating to branch default
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ cd repo
+  $ echo a >> a
+  $ hg commit -qAm aa
+  $ cd ../clone
+  $ hg pull --update
+  abort: update destination required by configuration
+  (use hg pull followed by hg update DEST)
+  [255]