Show More
@@ -572,25 +572,30 b' class changeset_templater(changeset_prin' | |||||
572 | c = [{'name': x[0], 'source': x[1]} for x in copies] |
|
572 | c = [{'name': x[0], 'source': x[1]} for x in copies] | |
573 | return showlist('file_copy', c, plural='file_copies', **args) |
|
573 | return showlist('file_copy', c, plural='file_copies', **args) | |
574 |
|
574 | |||
|
575 | files = [] | |||
|
576 | def getfiles(): | |||
|
577 | if not files: | |||
|
578 | files[:] = self.repo.status( | |||
|
579 | log.parents(changenode)[0], changenode)[:3] | |||
|
580 | return files | |||
|
581 | # XXX: "files" means "modified files" in debug, "all changed | |||
|
582 | # files" otherwise. This should be fixed and a "file_mods" be | |||
|
583 | # introduced instead. | |||
575 | if self.ui.debugflag: |
|
584 | if self.ui.debugflag: | |
576 | files = self.repo.status(log.parents(changenode)[0], changenode)[:3] |
|
|||
577 | def showfiles(**args): |
|
585 | def showfiles(**args): | |
578 | return showlist('file', files[0], **args) |
|
586 | return showlist('file', getfiles()[0], **args) | |
|
587 | else: | |||
|
588 | def showfiles(**args): | |||
|
589 | return showlist('file', changes[3], **args) | |||
579 |
|
|
590 | def showadds(**args): | |
580 |
|
|
591 | return showlist('file_add', getfiles()[1], **args) | |
581 |
|
|
592 | def showdels(**args): | |
582 |
|
|
593 | return showlist('file_del', getfiles()[2], **args) | |
583 |
|
|
594 | def showmanifest(**args): | |
584 |
|
|
595 | args = args.copy() | |
585 |
|
|
596 | args.update(dict(rev=self.repo.manifest.rev(changes[0]), | |
586 |
|
|
597 | node=hex(changes[0]))) | |
587 |
|
|
598 | return self.t('manifest', **args) | |
588 | else: |
|
|||
589 | def showfiles(**args): |
|
|||
590 | return showlist('file', changes[3], **args) |
|
|||
591 | showadds = '' |
|
|||
592 | showdels = '' |
|
|||
593 | showmanifest = '' |
|
|||
594 |
|
599 | |||
595 | defprops = { |
|
600 | defprops = { | |
596 | 'author': changes[1], |
|
601 | 'author': changes[1], |
@@ -1,6 +1,6 b'' | |||||
1 | changeset = 'changeset: {rev}:{node|short}\n{branches}{tags}{parents}user: {author}\ndate: {date|date}\nsummary: {desc|firstline}\n\n' |
|
1 | changeset = 'changeset: {rev}:{node|short}\n{branches}{tags}{parents}user: {author}\ndate: {date|date}\nsummary: {desc|firstline}\n\n' | |
2 | changeset_quiet = '{rev}:{node|short}\n' |
|
2 | changeset_quiet = '{rev}:{node|short}\n' | |
3 |
changeset_verbose = 'changeset: {rev}:{node|short}\n{branches}{tags}{parents} |
|
3 | changeset_verbose = 'changeset: {rev}:{node|short}\n{branches}{tags}{parents}user: {author}\ndate: {date|date}\n{files}{file_copies}description:\n{desc|strip}\n\n\n' | |
4 | changeset_debug = 'changeset: {rev}:{node}\n{branches}{tags}{parents}{manifest}user: {author}\ndate: {date|date}\n{files}{file_adds}{file_dels}{file_copies}{extras}description:\n{desc|strip}\n\n\n' |
|
4 | changeset_debug = 'changeset: {rev}:{node}\n{branches}{tags}{parents}{manifest}user: {author}\ndate: {date|date}\n{files}{file_adds}{file_dels}{file_copies}{extras}description:\n{desc|strip}\n\n\n' | |
5 | start_files = 'files: ' |
|
5 | start_files = 'files: ' | |
6 | file = ' {file}' |
|
6 | file = ' {file}' |
@@ -260,22 +260,22 b' other 2' | |||||
260 | other 3 |
|
260 | other 3 | |
261 | desc--debug: line 1 |
|
261 | desc--debug: line 1 | |
262 | line 2 |
|
262 | line 2 | |
263 | file_adds: |
|
263 | file_adds: second | |
264 | file_adds: |
|
|||
265 | file_adds: |
|
264 | file_adds: | |
266 | file_adds: |
|
265 | file_adds: d | |
267 | file_adds: |
|
|||
268 | file_adds: |
|
|||
269 | file_adds: |
|
266 | file_adds: | |
270 | file_adds: |
|
267 | file_adds: | |
|
268 | file_adds: c | |||
|
269 | file_adds: b | |||
|
270 | file_adds: a | |||
|
271 | file_adds--verbose: second | |||
271 | file_adds--verbose: |
|
272 | file_adds--verbose: | |
272 | file_adds--verbose: |
|
273 | file_adds--verbose: d | |
273 | file_adds--verbose: |
|
274 | file_adds--verbose: | |
274 | file_adds--verbose: |
|
275 | file_adds--verbose: | |
275 | file_adds--verbose: |
|
276 | file_adds--verbose: c | |
276 | file_adds--verbose: |
|
277 | file_adds--verbose: b | |
277 | file_adds--verbose: |
|
278 | file_adds--verbose: a | |
278 | file_adds--verbose: |
|
|||
279 | file_adds--debug: second |
|
279 | file_adds--debug: second | |
280 | file_adds--debug: |
|
280 | file_adds--debug: | |
281 | file_adds--debug: d |
|
281 | file_adds--debug: d | |
@@ -332,22 +332,22 b' files--debug: c' | |||||
332 | files--debug: |
|
332 | files--debug: | |
333 | files--debug: |
|
333 | files--debug: | |
334 | files--debug: |
|
334 | files--debug: | |
335 | manifest: |
|
335 | manifest: 7:f2dbc354b94e | |
336 | manifest: |
|
336 | manifest: 6:91015e9dbdd7 | |
337 | manifest: |
|
337 | manifest: 5:4dc3def4f9b4 | |
338 | manifest: |
|
338 | manifest: 4:90ae8dda64e1 | |
339 | manifest: |
|
339 | manifest: 3:cb5a1327723b | |
340 | manifest: |
|
340 | manifest: 2:6e0e82995c35 | |
341 | manifest: |
|
341 | manifest: 1:4e8d705b1e53 | |
342 | manifest: |
|
342 | manifest: 0:a0c8bcbbb45c | |
343 | manifest--verbose: |
|
343 | manifest--verbose: 7:f2dbc354b94e | |
344 | manifest--verbose: |
|
344 | manifest--verbose: 6:91015e9dbdd7 | |
345 | manifest--verbose: |
|
345 | manifest--verbose: 5:4dc3def4f9b4 | |
346 | manifest--verbose: |
|
346 | manifest--verbose: 4:90ae8dda64e1 | |
347 | manifest--verbose: |
|
347 | manifest--verbose: 3:cb5a1327723b | |
348 | manifest--verbose: |
|
348 | manifest--verbose: 2:6e0e82995c35 | |
349 | manifest--verbose: |
|
349 | manifest--verbose: 1:4e8d705b1e53 | |
350 | manifest--verbose: |
|
350 | manifest--verbose: 0:a0c8bcbbb45c | |
351 | manifest--debug: 7:f2dbc354b94e5ec0b4f10680ee0cee816101d0bf |
|
351 | manifest--debug: 7:f2dbc354b94e5ec0b4f10680ee0cee816101d0bf | |
352 | manifest--debug: 6:91015e9dbdd76a6791085d12b0a0ec7fcd22ffbf |
|
352 | manifest--debug: 6:91015e9dbdd76a6791085d12b0a0ec7fcd22ffbf | |
353 | manifest--debug: 5:4dc3def4f9b4c6e8de820f6ee74737f91e96a216 |
|
353 | manifest--debug: 5:4dc3def4f9b4c6e8de820f6ee74737f91e96a216 |
General Comments 0
You need to be logged in to leave comments.
Login now