comparison mercurial/scmutil.py @ 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 202291a280fb
children 97b2f26dfc43
comparison
equal deleted inserted replaced
20819:202291a280fb 20820:f8e531a3a77c
730 raise error.RequirementError(_(".hg/requires file is corrupt")) 730 raise error.RequirementError(_(".hg/requires file is corrupt"))
731 missings.append(r) 731 missings.append(r)
732 missings.sort() 732 missings.sort()
733 if missings: 733 if missings:
734 raise error.RequirementError( 734 raise error.RequirementError(
735 _("unknown repository format: requires features '%s' (upgrade " 735 _("repository requires features unknown to this Mercurial: %s")
736 "Mercurial)") % "', '".join(missings), 736 % " ".join(missings),
737 hint=_("see http://mercurial.selenic.com/wiki/MissingRequirement" 737 hint=_("see http://mercurial.selenic.com/wiki/MissingRequirement"
738 " for details")) 738 " for more information"))
739 return requirements 739 return requirements
740 740
741 class filecachesubentry(object): 741 class filecachesubentry(object):
742 def __init__(self, path, stat): 742 def __init__(self, path, stat):
743 self.path = path 743 self.path = path