| 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 |
[10] |
| 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 |
|
| 24 |
Check update.requiredest interaction with pull --update |
| 25 |
$ hg clone repo clone |
| 26 |
updating to branch default |
| 27 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 28 |
$ cd repo |
| 29 |
$ echo a >> a |
| 30 |
$ hg commit -qAm aa |
| 31 |
$ cd ../clone |
| 32 |
$ hg pull --update |
| 33 |
abort: update destination required by configuration |
| 34 |
(use hg pull followed by hg update DEST) |
| 35 |
[10] |
| 36 |
|
| 37 |
$ cd .. |
| 38 |
|
| 39 |
update.requiredest should silent the "hg update" text after pull |
| 40 |
$ hg init repo1 |
| 41 |
$ cd repo1 |
| 42 |
$ hg pull ../repo |
| 43 |
pulling from ../repo |
| 44 |
requesting all changes |
| 45 |
adding changesets |
| 46 |
adding manifests |
| 47 |
adding file changes |
| 48 |
added 2 changesets with 2 changes to 1 files |
| 49 |
new changesets 8f0162e483d0:048c2cb95949 |