##// END OF EJS Templates
repo: rephrase the "missing requirement" error message...
Mads Kiilerich -
r20820:f8e531a3 default
parent child Browse files
Show More
@@ -732,10 +732,10 b' def readrequires(opener, supported):'
732 732 missings.sort()
733 733 if missings:
734 734 raise error.RequirementError(
735 _("unknown repository format: requires features '%s' (upgrade "
736 "Mercurial)") % "', '".join(missings),
735 _("repository requires features unknown to this Mercurial: %s")
736 % " ".join(missings),
737 737 hint=_("see http://mercurial.selenic.com/wiki/MissingRequirement"
738 " for details"))
738 " for more information"))
739 739 return requirements
740 740
741 741 class filecachesubentry(object):
@@ -102,8 +102,8 b' Make sure we do not obscure unknown requ'
102 102 $ echo foo >> foo
103 103 $ echo fake >> .hg/requires
104 104 $ hg commit -m bla
105 abort: unknown repository format: requires features 'fake' (upgrade Mercurial)!
106 (see http://mercurial.selenic.com/wiki/MissingRequirement for details)
105 abort: repository requires features unknown to this Mercurial: fake!
106 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)
107 107 [255]
108 108
109 109 $ cd ..
@@ -113,14 +113,14 b' Make sure we do not obscure unknown requ'
113 113
114 114 $ echo fake >> .hg/requires
115 115 $ hg id
116 abort: unknown repository format: requires features 'fake' (upgrade Mercurial)!
117 (see http://mercurial.selenic.com/wiki/MissingRequirement for details)
116 abort: repository requires features unknown to this Mercurial: fake!
117 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)
118 118 [255]
119 119
120 120 $ cd ..
121 121 #if no-outer-repo
122 122 $ hg id test
123 abort: unknown repository format: requires features 'fake' (upgrade Mercurial)!
124 (see http://mercurial.selenic.com/wiki/MissingRequirement for details)
123 abort: repository requires features unknown to this Mercurial: fake!
124 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)
125 125 [255]
126 126 #endif
@@ -2259,8 +2259,8 b' enabling largefiles extension.'
2259 2259 $ hg -R enabledlocally root
2260 2260 $TESTTMP/individualenabling/enabledlocally (glob)
2261 2261 $ hg -R notenabledlocally root
2262 abort: unknown repository format: requires features 'largefiles' (upgrade Mercurial)!
2263 (see http://mercurial.selenic.com/wiki/MissingRequirement for details)
2262 abort: repository requires features unknown to this Mercurial: largefiles!
2263 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)
2264 2264 [255]
2265 2265
2266 2266 $ hg init push-dst
@@ -2276,8 +2276,8 b' enabling largefiles extension.'
2276 2276 [255]
2277 2277
2278 2278 $ hg clone enabledlocally clone-dst
2279 abort: unknown repository format: requires features 'largefiles' (upgrade Mercurial)!
2280 (see http://mercurial.selenic.com/wiki/MissingRequirement for details)
2279 abort: repository requires features unknown to this Mercurial: largefiles!
2280 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)
2281 2281 [255]
2282 2282 $ test -d clone-dst
2283 2283 [1]
@@ -9,13 +9,13 b''
9 9 [255]
10 10 $ echo indoor-pool > .hg/requires
11 11 $ hg tip
12 abort: unknown repository format: requires features 'indoor-pool' (upgrade Mercurial)!
13 (see http://mercurial.selenic.com/wiki/MissingRequirement for details)
12 abort: repository requires features unknown to this Mercurial: indoor-pool!
13 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)
14 14 [255]
15 15 $ echo outdoor-pool >> .hg/requires
16 16 $ hg tip
17 abort: unknown repository format: requires features 'indoor-pool', 'outdoor-pool' (upgrade Mercurial)!
18 (see http://mercurial.selenic.com/wiki/MissingRequirement for details)
17 abort: repository requires features unknown to this Mercurial: indoor-pool outdoor-pool!
18 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)
19 19 [255]
20 20 $ cd ..
21 21
@@ -62,8 +62,8 b' another repository of push/pull/clone on'
62 62 [255]
63 63
64 64 $ hg clone supported clone-dst
65 abort: unknown repository format: requires features 'featuresetup-test' (upgrade Mercurial)!
66 (see http://mercurial.selenic.com/wiki/MissingRequirement for details)
65 abort: repository requires features unknown to this Mercurial: featuresetup-test!
66 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)
67 67 [255]
68 68 $ hg clone --pull supported clone-dst
69 69 abort: required features are not supported in the destination: featuresetup-test
General Comments 0
You need to be logged in to leave comments. Login now