Show More
@@ -329,9 +329,9 b' class changeset_printer(object):' | |||||
329 | self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode))) |
|
329 | self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode))) | |
330 |
|
330 | |||
331 | if branch: |
|
331 | if branch: | |
332 |
self.ui. |
|
332 | self.ui.write(_("branch: %s\n") % branch) | |
333 | for tag in self.repo.nodetags(changenode): |
|
333 | for tag in self.repo.nodetags(changenode): | |
334 |
self.ui. |
|
334 | self.ui.write(_("tag: %s\n") % tag) | |
335 | for parent in parents: |
|
335 | for parent in parents: | |
336 | self.ui.write(_("parent: %d:%s\n") % parent) |
|
336 | self.ui.write(_("parent: %d:%s\n") % parent) | |
337 |
|
337 | |||
@@ -339,40 +339,41 b' class changeset_printer(object):' | |||||
339 | br = brinfo[changenode] |
|
339 | br = brinfo[changenode] | |
340 | self.ui.write(_("branch: %s\n") % " ".join(br)) |
|
340 | self.ui.write(_("branch: %s\n") % " ".join(br)) | |
341 |
|
341 | |||
342 | self.ui.debug(_("manifest: %d:%s\n") % |
|
342 | if self.ui.debugflag: | |
343 | (self.repo.manifest.rev(changes[0]), hex(changes[0]))) |
|
343 | self.ui.write(_("manifest: %d:%s\n") % | |
344 | self.ui.status(_("user: %s\n") % changes[1]) |
|
344 | (self.repo.manifest.rev(changes[0]), hex(changes[0]))) | |
345 |
self.ui. |
|
345 | self.ui.write(_("user: %s\n") % changes[1]) | |
|
346 | self.ui.write(_("date: %s\n") % date) | |||
346 |
|
347 | |||
347 | if self.ui.debugflag: |
|
348 | if self.ui.debugflag: | |
348 | files = self.repo.status(log.parents(changenode)[0], changenode)[:3] |
|
349 | files = self.repo.status(log.parents(changenode)[0], changenode)[:3] | |
349 | for key, value in zip([_("files:"), _("files+:"), _("files-:")], |
|
350 | for key, value in zip([_("files:"), _("files+:"), _("files-:")], | |
350 | files): |
|
351 | files): | |
351 | if value: |
|
352 | if value: | |
352 |
self.ui. |
|
353 | self.ui.write("%-12s %s\n" % (key, " ".join(value))) | |
353 | elif changes[3]: |
|
354 | elif changes[3] and self.ui.verbose: | |
354 |
self.ui. |
|
355 | self.ui.write(_("files: %s\n") % " ".join(changes[3])) | |
355 | if copies: |
|
356 | if copies and self.ui.verbose: | |
356 | copies = ['%s (%s)' % c for c in copies] |
|
357 | copies = ['%s (%s)' % c for c in copies] | |
357 |
self.ui. |
|
358 | self.ui.write(_("copies: %s\n") % ' '.join(copies)) | |
358 |
|
359 | |||
359 | if extra and self.ui.debugflag: |
|
360 | if extra and self.ui.debugflag: | |
360 | extraitems = extra.items() |
|
361 | extraitems = extra.items() | |
361 | extraitems.sort() |
|
362 | extraitems.sort() | |
362 | for key, value in extraitems: |
|
363 | for key, value in extraitems: | |
363 |
self.ui. |
|
364 | self.ui.write(_("extra: %s=%s\n") | |
364 | % (key, value.encode('string_escape'))) |
|
365 | % (key, value.encode('string_escape'))) | |
365 |
|
366 | |||
366 | description = changes[4].strip() |
|
367 | description = changes[4].strip() | |
367 | if description: |
|
368 | if description: | |
368 | if self.ui.verbose: |
|
369 | if self.ui.verbose: | |
369 |
self.ui. |
|
370 | self.ui.write(_("description:\n")) | |
370 |
self.ui. |
|
371 | self.ui.write(description) | |
371 |
self.ui. |
|
372 | self.ui.write("\n\n") | |
372 | else: |
|
373 | else: | |
373 |
self.ui. |
|
374 | self.ui.write(_("summary: %s\n") % | |
374 |
|
|
375 | description.splitlines()[0]) | |
375 |
self.ui. |
|
376 | self.ui.write("\n") | |
376 |
|
377 | |||
377 | def show_changeset(ui, repo, opts): |
|
378 | def show_changeset(ui, repo, opts): | |
378 | """show one changeset using template or regular display. |
|
379 | """show one changeset using template or regular display. |
General Comments 0
You need to be logged in to leave comments.
Login now