comparison mercurial/sparse.py @ 38861:49505ec24e8f

sparse: do not include operator in i18n strings
author Yuya Nishihara <yuya@tcha.org>
date Sat, 04 Aug 2018 17:11:03 +0900
parents 8fe62ad9f4ff
children 1ff45c518e6f
comparison
equal deleted inserted replaced
38860:257c9846b532 38861:49505ec24e8f
54 if line: 54 if line:
55 profiles.add(line) 55 profiles.add(line)
56 elif line == '[include]': 56 elif line == '[include]':
57 if havesection and current != includes: 57 if havesection and current != includes:
58 # TODO pass filename into this API so we can report it. 58 # TODO pass filename into this API so we can report it.
59 raise error.Abort(_('%s config cannot have includes ' + 59 raise error.Abort(_('%s config cannot have includes '
60 'after excludes') % action) 60 'after excludes') % action)
61 havesection = True 61 havesection = True
62 current = includes 62 current = includes
63 continue 63 continue
64 elif line == '[exclude]': 64 elif line == '[exclude]':
70 'section: %s') % (action, line), 70 'section: %s') % (action, line),
71 hint=_('add an [include] or [exclude] line ' 71 hint=_('add an [include] or [exclude] line '
72 'to declare the entry type')) 72 'to declare the entry type'))
73 73
74 if line.strip().startswith('/'): 74 if line.strip().startswith('/'):
75 ui.warn(_('warning: %s profile cannot use' + 75 ui.warn(_('warning: %s profile cannot use'
76 ' paths starting with /, ignoring %s\n') 76 ' paths starting with /, ignoring %s\n')
77 % (action, line)) 77 % (action, line))
78 continue 78 continue
79 current.add(line) 79 current.add(line)
80 80