Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
31843:526e4597cca5 | 31844:478999e8281d |
---|---|
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 |