Mercurial > hg
comparison mercurial/templates/static/style-paper.css @ 17202:1ae119269ddc
hgweb: side-by-side comparison functionality
Adds new web command to the core, ``comparison``, which enables colorful
side-by-side change display, which for some might be much easier to work with
than the standard line diff output. The idea how to implement comes from the
SonicHq extension.
The web interface gets a new link to call the comparison functionality. It lets
users configure the amount of context lines around change blocks, or to show
full files - check help (also in this changeset) for details and defaults. The
setting in hgrc can be overridden by adding ``context=<value>`` to the request
query string. The comparison creates addressable lines, so as to enable sharing
links to specific lines, just as standard diff does.
Incorporates updates to all web related styles.
Known limitations:
* the column diff is done against the first parent, just as the standard diff
* this change allows examining diffs for single files only (as I am not sure if
examining the whole changeset in this way would be helpful)
* syntax highlighting of the output changes is not performed (enabling the
highlight extension has no influence on it)
author | wujek srujek |
---|---|
date | Sun, 08 Jul 2012 17:17:02 +0200 |
parents | 81fc9678b018 |
children | 106cdea0183d |
comparison
equal
deleted
inserted
replaced
17201:afd75476939e | 17202:1ae119269ddc |
---|---|
273 display: block; | 273 display: block; |
274 font-size: 70%; | 274 font-size: 70%; |
275 position: relative; | 275 position: relative; |
276 top: -3px; | 276 top: -3px; |
277 } | 277 } |
278 | |
279 /* Comparison */ | |
280 .legend { | |
281 padding: 1.5% 0 1.5% 0; | |
282 } | |
283 | |
284 .legendinfo { | |
285 border: 1px solid #999; | |
286 font-size: 80%; | |
287 text-align: center; | |
288 padding: 0.5%; | |
289 } | |
290 | |
291 .equal { | |
292 background-color: #ffffff; | |
293 } | |
294 | |
295 .delete { | |
296 background-color: #ffc5ce; | |
297 } | |
298 | |
299 .insert { | |
300 background-color: #c5ffc4; | |
301 } | |
302 | |
303 .replace { | |
304 background-color: #ffff99; | |
305 } | |
306 | |
307 .header { | |
308 text-align: center; | |
309 } | |
310 | |
311 .block { | |
312 border-top: 1px solid #999; | |
313 } |