##// END OF EJS Templates
log: fix status template to list copy source per dest (issue5155)...
Yuya Nishihara -
r29000:2d3837a4 stable
parent child Browse files
Show More
@@ -8,18 +8,13 b" changeset_debug = '{fullcset}{branches}{"
8 # Override the file templates
8 # Override the file templates
9 lfiles = '{if(files,
9 lfiles = '{if(files,
10 label('ui.note log.files',
10 label('ui.note log.files',
11 'files:\n'))}{lfile_mods}{lfile_adds}{lfile_copies_switch}{lfile_dels}'
11 'files:\n'))}{lfile_mods}{lfile_adds}{lfile_dels}'
12
12
13 # Exclude copied files, will display those in lfile_copies_switch
13 lfile_adds = '{file_adds % "{lfile_add}{lfile_src}"}'
14 lfile_adds = '{file_adds % "{ifcontains(file, file_copies_switch,
14 lfile_mods = '{file_mods % "{lfile_mod}{lfile_src}"}'
15 '',
16 '{lfile_add}')}"}'
17 lfile_add = '{label("status.added", "A {file}\n")}'
15 lfile_add = '{label("status.added", "A {file}\n")}'
18
16 lfile_mod = '{label("status.modified", "M {file}\n")}'
19 lfile_copies_switch = '{file_copies_switch % "{lfile_copy_orig}{lfile_copy_dest}"}'
17 lfile_src = '{ifcontains(file, file_copies_switch,
20 lfile_copy_orig = '{label("status.added", "A {name}\n")}'
18 label("status.copied", " {get(file_copies_switch, file)}\n"))}'
21 lfile_copy_dest = '{label("status.copied", " {source}\n")}'
22
23 lfile_mods = '{file_mods % "{label('status.modified', 'M {file}\n')}"}'
24
19
25 lfile_dels = '{file_dels % "{label('status.removed', 'R {file}\n')}"}'
20 lfile_dels = '{file_dels % "{label('status.removed', 'R {file}\n')}"}'
@@ -513,6 +513,18 b' using ui.statuscopies setting'
513 M a
513 M a
514 R b
514 R b
515
515
516 using log status template (issue5155)
517 $ hg log -Tstatus -r 'wdir()' -C
518 changeset: 2147483647:ffffffffffff
519 parent: 0:8c55c58b4c0e
520 user: test
521 date: * (glob)
522 files:
523 M a
524 b
525 R b
526
527
516 Other "bug" highlight, the revision status does not report the copy information.
528 Other "bug" highlight, the revision status does not report the copy information.
517 This is buggy behavior.
529 This is buggy behavior.
518
530
@@ -521,4 +533,17 b' This is buggy behavior.'
521 M a
533 M a
522 R b
534 R b
523
535
536 using log status template, the copy information is displayed correctly.
537 $ hg log -Tstatus -r. -C
538 changeset: 1:6685fde43d21
539 tag: tip
540 user: test
541 date: * (glob)
542 summary: blah
543 files:
544 M a
545 b
546 R b
547
548
524 $ cd ..
549 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now