comparison tests/test-update-names.t @ 31557:79d98e1b21a7

update: add flag to require update destination In some mercurial workflows, the default destination for update does not always work well and can lead to confusing behavior. With this flag enabled, every update command will require passing an explicit destination, eliminating this confusion.
author Ryan McElroy <rmcelroy@fb.com>
date Tue, 14 Mar 2017 17:43:18 -0700
parents 46a0203dfb89
children 37a0ad669051
comparison
equal deleted inserted replaced
31556:448acdee9161 31557:79d98e1b21a7
86 $ hg up -q null 86 $ hg up -q null
87 current directory was removed 87 current directory was removed
88 (consider changing to repo root: $TESTTMP/r1/r4) 88 (consider changing to repo root: $TESTTMP/r1/r4)
89 89
90 #endif 90 #endif
91
92 $ cd $TESTTMP
93 $ cat >> $HGRCPATH <<EOF
94 > [commands]
95 > update.requiredest = True
96 > EOF
97 $ hg init dest
98 $ cd dest
99 $ echo a >> a
100 $ hg commit -qAm aa
101 $ hg up
102 abort: you must specify a destination
103 (for example: hg update ".::")
104 [255]
105 $ hg up .
106 0 files updated, 0 files merged, 0 files removed, 0 files unresolved