Show More
@@ -244,8 +244,8 b' def showfilecopies(**args):' | |||||
244 | copies.append((fn, rename[0])) |
|
244 | copies.append((fn, rename[0])) | |
245 |
|
245 | |||
246 | c = [{'name': x[0], 'source': x[1]} for x in copies] |
|
246 | c = [{'name': x[0], 'source': x[1]} for x in copies] | |
247 |
|
|
247 | f = _showlist('file_copy', c, plural='file_copies', **args) | |
248 | element='file', **args) |
|
248 | return _hybrid(f, c) | |
249 |
|
249 | |||
250 | # showfilecopiesswitch() displays file copies only if copy records are |
|
250 | # showfilecopiesswitch() displays file copies only if copy records are | |
251 | # provided before calling the templater, usually with a --copies |
|
251 | # provided before calling the templater, usually with a --copies | |
@@ -256,8 +256,8 b' def showfilecopiesswitch(**args):' | |||||
256 | """ |
|
256 | """ | |
257 | copies = args['revcache'].get('copies') or [] |
|
257 | copies = args['revcache'].get('copies') or [] | |
258 | c = [{'name': x[0], 'source': x[1]} for x in copies] |
|
258 | c = [{'name': x[0], 'source': x[1]} for x in copies] | |
259 |
|
|
259 | f = _showlist('file_copy', c, plural='file_copies', **args) | |
260 | element='file', **args) |
|
260 | return _hybrid(f, c) | |
261 |
|
261 | |||
262 | def showfiledels(**args): |
|
262 | def showfiledels(**args): | |
263 | """:file_dels: List of strings. Files removed by this changeset.""" |
|
263 | """:file_dels: List of strings. Files removed by this changeset.""" |
@@ -43,6 +43,9 b' Second branch starting at nullrev:' | |||||
43 | $ hg mv second fourth |
|
43 | $ hg mv second fourth | |
44 | $ hg commit -m third -d "2020-01-01 10:01" |
|
44 | $ hg commit -m third -d "2020-01-01 10:01" | |
45 |
|
45 | |||
|
46 | $ hg log --template '{file_copies % "{source} -> {name}\n"}' -r . | |||
|
47 | second -> fourth | |||
|
48 | ||||
46 | Quoting for ui.logtemplate |
|
49 | Quoting for ui.logtemplate | |
47 |
|
50 | |||
48 | $ hg tip --config "ui.logtemplate={rev}\n" |
|
51 | $ hg tip --config "ui.logtemplate={rev}\n" |
General Comments 0
You need to be logged in to leave comments.
Login now