Mercurial > hg
comparison tests/test-requires.t @ 20820:f8e531a3a77c
repo: rephrase the "missing requirement" error message
Unknown requirements will now be reported as:
abort: repository requires features unknown to this Mercurial: largefiles!
(see http://mercurial.selenic.com/wiki/MissingRequirement for more information)
Some features of this phrasing:
* avoid double ':' in abort message
* make it more clear who requires and knows what
* don't quote the requirement names - it is not something the user entered or
need the exact spelling of ... and it is "identifiers" that are unambiguous
anyway
* remove double hint by removing "(upgrade Mercurial)" comment
* don't mention upgrading Mercurial without mentioning enabling the feature -
instead, just refer to wiki page for both
* don't just talk about "details", talk about "more information"
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 19 Mar 2014 00:18:30 +0100 |
parents | b93791e0de25 |
children | 4b0fc75f9403 |
comparison
equal
deleted
inserted
replaced
20819:202291a280fb | 20820:f8e531a3a77c |
---|---|
7 $ hg tip | 7 $ hg tip |
8 abort: index 00changelog.i unknown format 2! | 8 abort: index 00changelog.i unknown format 2! |
9 [255] | 9 [255] |
10 $ echo indoor-pool > .hg/requires | 10 $ echo indoor-pool > .hg/requires |
11 $ hg tip | 11 $ hg tip |
12 abort: unknown repository format: requires features 'indoor-pool' (upgrade Mercurial)! | 12 abort: repository requires features unknown to this Mercurial: indoor-pool! |
13 (see http://mercurial.selenic.com/wiki/MissingRequirement for details) | 13 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information) |
14 [255] | 14 [255] |
15 $ echo outdoor-pool >> .hg/requires | 15 $ echo outdoor-pool >> .hg/requires |
16 $ hg tip | 16 $ hg tip |
17 abort: unknown repository format: requires features 'indoor-pool', 'outdoor-pool' (upgrade Mercurial)! | 17 abort: repository requires features unknown to this Mercurial: indoor-pool outdoor-pool! |
18 (see http://mercurial.selenic.com/wiki/MissingRequirement for details) | 18 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information) |
19 [255] | 19 [255] |
20 $ cd .. | 20 $ cd .. |
21 | 21 |
22 Test checking between features supported locally and ones required in | 22 Test checking between features supported locally and ones required in |
23 another repository of push/pull/clone on localhost: | 23 another repository of push/pull/clone on localhost: |
60 pulling from supported | 60 pulling from supported |
61 abort: required features are not supported in the destination: featuresetup-test | 61 abort: required features are not supported in the destination: featuresetup-test |
62 [255] | 62 [255] |
63 | 63 |
64 $ hg clone supported clone-dst | 64 $ hg clone supported clone-dst |
65 abort: unknown repository format: requires features 'featuresetup-test' (upgrade Mercurial)! | 65 abort: repository requires features unknown to this Mercurial: featuresetup-test! |
66 (see http://mercurial.selenic.com/wiki/MissingRequirement for details) | 66 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information) |
67 [255] | 67 [255] |
68 $ hg clone --pull supported clone-dst | 68 $ hg clone --pull supported clone-dst |
69 abort: required features are not supported in the destination: featuresetup-test | 69 abort: required features are not supported in the destination: featuresetup-test |
70 [255] | 70 [255] |
71 | 71 |