Show More
@@ -0,0 +1,23 b'' | |||||
|
1 | Test update.requiredest | |||
|
2 | $ cd $TESTTMP | |||
|
3 | $ cat >> $HGRCPATH <<EOF | |||
|
4 | > [commands] | |||
|
5 | > update.requiredest = True | |||
|
6 | > EOF | |||
|
7 | $ hg init repo | |||
|
8 | $ cd repo | |||
|
9 | $ echo a >> a | |||
|
10 | $ hg commit -qAm aa | |||
|
11 | $ hg up | |||
|
12 | abort: you must specify a destination | |||
|
13 | (for example: hg update ".::") | |||
|
14 | [255] | |||
|
15 | $ hg up . | |||
|
16 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
17 | $ HGPLAIN=1 hg up | |||
|
18 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
19 | $ hg --config commands.update.requiredest=False up | |||
|
20 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
21 | ||||
|
22 | $ cd .. | |||
|
23 |
@@ -88,23 +88,3 b' Test that warning is printed if cwd is d' | |||||
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 |
|
|||
107 | $ HGPLAIN=1 hg up |
|
|||
108 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
|||
109 | $ hg --config commands.update.requiredest=False up |
|
|||
110 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
General Comments 0
You need to be logged in to leave comments.
Login now