sapling/mercurial/templates
Anton Shestakov 834be0af5c hgweb: use strict equals in mercurial.js
This patch changes "==" (equals operator) to "===" (strict equals operator).
The difference between them is that the latter doesn't do any type coercions.
It's handy to compare string '1' to number 1 sometimes, but most of the time
using "==" is inadvertent and can be replaced by an explicit type conversion.
(This corresponds to "eqeqeq" option of jshint).

Some of the changes in this patch are straightforward, e.g. when comparing
results of typeof (they could only be strings). The same goes for 'none' and
similar strings that can't be sensibly coerced to some other type. Two changes
that compare values to "1" and "0" can be clarified: getAttribute() returns
either a string or null, but comparing null to a string is always false, so no
logic is lost.
2017-11-22 20:52:59 +08:00
..
atom hgweb: reindent atom/changelogentry.tmpl 2016-06-29 22:48:32 +08:00
coal coal: use inheritance to derive from paper 2016-08-17 13:43:13 -05:00
gitweb hgweb: show changeset age in more places (gitweb and monoblue) 2017-11-21 20:28:57 +08:00
json hgweb: expose list of per-repo labels to templates 2016-06-30 18:59:53 -07:00
monoblue hgweb: show changeset age in more places (gitweb and monoblue) 2017-11-21 20:28:57 +08:00
paper hgweb: rename the main attribute of instabilities 2017-11-26 13:29:18 +08:00
raw hgweb: use webutil.commonentry() for nodes (but not for jsdata yet) in /graph 2017-11-20 21:59:00 +08:00
rss hgweb: add missing slash to file log url in rss style 2016-12-08 23:59:36 +08:00
spartan hgweb: rename the main attribute of instabilities 2017-11-26 13:29:18 +08:00
static hgweb: use strict equals in mercurial.js 2017-11-22 20:52:59 +08:00
map-cmdline.bisect templater: load template fragments from [templates] section in map file 2017-10-14 17:51:01 +09:00
map-cmdline.changelog templater: load template fragments from [templates] section in map file 2017-10-14 17:51:01 +09:00
map-cmdline.compact templater: load template fragments from [templates] section in map file 2017-10-14 17:51:01 +09:00
map-cmdline.default obsfate: rename obsfate into obsolete in default mapfile 2017-10-19 12:33:53 +02:00
map-cmdline.phases templater: load template fragments from [templates] section in map file 2017-10-14 17:51:01 +09:00
map-cmdline.show show: use labelcset() template alias for work (and stack) views 2017-10-17 20:25:43 +02:00
map-cmdline.status templater: load template fragments from [templates] section in map file 2017-10-14 17:51:01 +09:00
map-cmdline.xml templater: load template fragments from [templates] section in map file 2017-10-14 17:51:01 +09:00