comparison doc/lawrencium.txt @ 73:785d1a1faa6c

Changes and fixes to the `Hglog` window: - Fixed a bug with showing diffs. - Made the diff behaviour and commands more consistent with those of the `Hgstatus` window.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 16 Feb 2014 22:33:11 -0800
parents 1fbba48019b5
children e688b658ce5b
comparison
equal deleted inserted replaced
72:a987094d5ae6 73:785d1a1faa6c
279 The `hg log` window opened by Lawrencium has a few special commands 279 The `hg log` window opened by Lawrencium has a few special commands
280 defined in it. Also, unless the global |lawrencium_define_mappings| is set to 280 defined in it. Also, unless the global |lawrencium_define_mappings| is set to
281 `0`, some commands are mapped to keyboard shortcuts, as detailed in the 281 `0`, some commands are mapped to keyboard shortcuts, as detailed in the
282 following descriptions. 282 following descriptions.
283 283
284 *:Hglogdiffsum*
285 :Hglogdiffsum Splits the previous window to show a diff summary (as
286 returned by `hg diff`) of the change specified on
287 the current line.
288 Mapped to |<C-U>|.
289
290 *:Hglogdiffsum_r*
291 :Hglogdiffsum {rev1} {rev2}
292 Same as |:Hglogdiffsum| but shows a diff summary of
293 the change between the two specified revisions. If
294 only {rev1} is specified, the change at that revision
295 will be shown.
296
297 *:Hglogvdiffsum*
298 :Hglogvdiffsum Same as |:Hglogdiffsum| but opens a vertical split
299 instead of a horizontal one.
300 Mapped to |<C-H>| and |<CR>|.
301
302 *:Hglogvdiffsum_r*
303 :Hglogvdiffsum {rev1} {rev2}
304 Same as |:Hglogdiffsum_r| but opens a vertical split
305 instead of a horizontal one.
306
284 *:Hglogrevedit* 307 *:Hglogrevedit*
285 :Hglogrevedit Looks at the revision specified on the current line, 308 :Hglogrevedit Looks at the revision specified on the current line,
286 and opens that revision for edit in the previous 309 and opens that revision for edit in the previous
287 window (although as a read-only buffer). 310 window (although as a read-only buffer).
288 This is only valid if the logged path maps to a file 311 This is only valid if the logged path maps to a file
290 with |:Hglog|). 313 with |:Hglog|).
291 Mapped to |<C-E>|. 314 Mapped to |<C-E>|.
292 315
293 *:Hglogdiff* 316 *:Hglogdiff*
294 :Hglogdiff Looks at the revision specified on the current line, 317 :Hglogdiff Looks at the revision specified on the current line,
295 and runs an `hg diff` between that revision and the 318 and opens a Vim diff between that revision and its
296 previously listed revision (in the line below). It 319 first parent.
297 opens that diff in the previous window. 320 This is only valid if the logged path maps to a file
298 It doesn't do anything if the cursor is on the last 321 (i.e. not a directory, and not the whole repository as
299 line. 322 with |:Hglog|).
300 Mapped to |<CR>|. 323 Mapped to |<C-D>|.
301 324
302 *:Hglogdiff_r* 325 *:Hglogdiff_r*
303 :Hglogdiff {rev} Same as |:Hglogdiff|, but opens a diff between the
304 specified revision and the working directory.
305
306 *:Hglogdiff_r_r*
307 :Hglogdiff {rev1} {rev2} 326 :Hglogdiff {rev1} {rev2}
308 Same as |:Hglogdiff|, but opens a diff between the 327 Same as |:Hglogdiff|, but opens a diff between the
309 two specified revisions. 328 specified revisions. If only {rev1} is specified,
329 opens a Vim diff between that revision and its first
330 parent.
331
332 *:Hglogvdiff*
333 :Hglogvdiff Same as |:Hglogdiff|, but opens a vertical split
334 instead of a horizontal one.
335
336 *:Hglogvdiff_r*
337 :Hglogvdiff {rev1} {rev2}
338 Same as |:Hglogdiff_r| but opens a vertical split
339 instead of a horizontal one.
310 340
311 *lawrencium-log-mappings* 341 *lawrencium-log-mappings*
312 A few other mappings are available in the log window: 342 A few other mappings are available in the log window:
313 343
314 q Quit the log window. 344 q Quit the log window.