# HG changeset patch # User Anton Shestakov # Date 1467202744 -28800 # Node ID 849b8e84487e0faa4b2cc4ff4d0a9e7122505211 # Parent b8ede1f7912628e4192c4cbfe642fe714d3e1b47 hgweb: reindent rss/changelogentry.tmpl It was mixing tabs and spaces, and not in a good way. Indent style of other rss entries seems to be 4 spaces per level, so let's apply it here as well. diff -r b8ede1f79126 -r 849b8e84487e mercurial/templates/rss/changelogentry.tmpl --- a/mercurial/templates/rss/changelogentry.tmpl Wed Jun 29 19:40:04 2016 +0800 +++ b/mercurial/templates/rss/changelogentry.tmpl Wed Jun 29 20:19:04 2016 +0800 @@ -1,40 +1,41 @@ {inbranch%"{if(name, '[{name|escape}] ')}"}{branches%"{if(name, '[{name|escape}] ')}"}{desc|strip|firstline|strip|escape} {urlbase}{url|urlescape}rev/{node|short} - {urlbase}{url|urlescape}rev/{node|short} + {urlbase}{url|urlescape}rev/{node|short} - - - changeset - {node|short} - - - branch - {inbranch%"{name|escape}"}{branches%"{name|escape}"} - - - bookmark - {bookmarks%"{name|escape}"} - - - tag - {tags%"{name|escape}"} - - - user - {author|obfuscate} - - - description - {desc|strip|escape|websub|addbreaks|nonempty} - - - files - {files} - - - ]]> + + + changeset + {node|short} + + + branch + {inbranch%"{name|escape}"}{branches%"{name|escape}"} + + + bookmark + {bookmarks%"{name|escape}"} + + + tag + {tags%"{name|escape}"} + + + user + {author|obfuscate} + + + description + {desc|strip|escape|websub|addbreaks|nonempty} + + + files + {files} + + + ]]> + {author|obfuscate} {date|rfc822date} diff -r b8ede1f79126 -r 849b8e84487e tests/test-hgweb-commands.t --- a/tests/test-hgweb-commands.t Wed Jun 29 19:40:04 2016 +0800 +++ b/tests/test-hgweb-commands.t Wed Jun 29 20:19:04 2016 +0800 @@ -258,160 +258,164 @@ [unstable] branch commit with null character: http://*:$HGPORT/rev/cad8025a2e87 (glob) - http://*:$HGPORT/rev/cad8025a2e87 (glob) + http://*:$HGPORT/rev/cad8025a2e87 (glob) - - - changeset - cad8025a2e87 - - - branch - unstable - - - bookmark - something - - - tag - tip - - - user - test - - - description - branch commit with null character: (websub) - - - files - - - - ]]> + + + changeset + cad8025a2e87 + + + branch + unstable + + + bookmark + something + + + tag + tip + + + user + test + + + description + branch commit with null character: (websub) + + + files + + + + ]]> + test Thu, 01 Jan 1970 00:00:00 +0000 [stable] branch http://*:$HGPORT/rev/1d22e65f027e (glob) - http://*:$HGPORT/rev/1d22e65f027e (glob) + http://*:$HGPORT/rev/1d22e65f027e (glob) - - - changeset - 1d22e65f027e - - - branch - stable - - - bookmark - - - - tag - - - - user - test - - - description - branch(websub) - - - files - foo
- - - ]]>
+ + + changeset + 1d22e65f027e + + + branch + stable + + + bookmark + + + + tag + + + + user + test + + + description + branch(websub) + + + files + foo
+ + + ]]> + test Thu, 01 Jan 1970 00:00:00 +0000
[default] Added tag 1.0 for changeset 2ef0ac749a14 http://*:$HGPORT/rev/a4f92ed23982 (glob) - http://*:$HGPORT/rev/a4f92ed23982 (glob) + http://*:$HGPORT/rev/a4f92ed23982 (glob) - - - changeset - a4f92ed23982 - - - branch - default - - - bookmark - - - - tag - - - - user - test - - - description - Added tag 1.0 for changeset 2ef0ac749a14(websub) - - - files - .hgtags
- - - ]]>
+ + + changeset + a4f92ed23982 + + + branch + default + + + bookmark + + + + tag + + + + user + test + + + description + Added tag 1.0 for changeset 2ef0ac749a14(websub) + + + files + .hgtags
+ + + ]]> + test Thu, 01 Jan 1970 00:00:00 +0000
base http://*:$HGPORT/rev/2ef0ac749a14 (glob) - http://*:$HGPORT/rev/2ef0ac749a14 (glob) + http://*:$HGPORT/rev/2ef0ac749a14 (glob) - - - changeset - 2ef0ac749a14 - - - branch - - - - bookmark - anotherthing - - - tag - 1.0 - - - user - test - - - description - base(websub) - - - files - da/foo
foo
- - - ]]>
+ + + changeset + 2ef0ac749a14 + + + branch + + + + bookmark + anotherthing + + + tag + 1.0 + + + user + test + + + description + base(websub) + + + files + da/foo
foo
+ + + ]]> + test Thu, 01 Jan 1970 00:00:00 +0000
@@ -532,80 +536,82 @@ [default] Added tag 1.0 for changeset 2ef0ac749a14 http://*:$HGPORT/rev/a4f92ed23982 (glob) - http://*:$HGPORT/rev/a4f92ed23982 (glob) + http://*:$HGPORT/rev/a4f92ed23982 (glob) - - - changeset - a4f92ed23982 - - - branch - default - - - bookmark - - - - tag - - - - user - test - - - description - Added tag 1.0 for changeset 2ef0ac749a14(websub) - - - files - .hgtags
- - - ]]>
+ + + changeset + a4f92ed23982 + + + branch + default + + + bookmark + + + + tag + + + + user + test + + + description + Added tag 1.0 for changeset 2ef0ac749a14(websub) + + + files + .hgtags
+ + + ]]> + test Thu, 01 Jan 1970 00:00:00 +0000
base http://*:$HGPORT/rev/2ef0ac749a14 (glob) - http://*:$HGPORT/rev/2ef0ac749a14 (glob) + http://*:$HGPORT/rev/2ef0ac749a14 (glob) - - - changeset - 2ef0ac749a14 - - - branch - - - - bookmark - anotherthing - - - tag - 1.0 - - - user - test - - - description - base(websub) - - - files - da/foo
foo
- - - ]]>
+ + + changeset + 2ef0ac749a14 + + + branch + + + + bookmark + anotherthing + + + tag + 1.0 + + + user + test + + + description + base(websub) + + + files + da/foo
foo
+ + + ]]> + test Thu, 01 Jan 1970 00:00:00 +0000