comparison tests/test-commit.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 efbf15979538
children 81d6dc8c3c63
comparison
equal deleted inserted replaced
20819:202291a280fb 20820:f8e531a3a77c
100 Make sure we do not obscure unknown requires file entries (issue2649) 100 Make sure we do not obscure unknown requires file entries (issue2649)
101 101
102 $ echo foo >> foo 102 $ echo foo >> foo
103 $ echo fake >> .hg/requires 103 $ echo fake >> .hg/requires
104 $ hg commit -m bla 104 $ hg commit -m bla
105 abort: unknown repository format: requires features 'fake' (upgrade Mercurial)! 105 abort: repository requires features unknown to this Mercurial: fake!
106 (see http://mercurial.selenic.com/wiki/MissingRequirement for details) 106 (see http://mercurial.selenic.com/wiki/MissingRequirement for more information)
107 [255] 107 [255]
108 108
109 $ cd .. 109 $ cd ..
110 110
111 111