Show More
@@ -268,6 +268,7 b' def indent(text, prefix):' | |||
|
268 | 268 | |
|
269 | 269 | common_filters = { |
|
270 | 270 | "addbreaks": nl2br, |
|
271 | "basename": os.path.basename, | |
|
271 | 272 | "age": age, |
|
272 | 273 | "date": lambda x: util.datestr(x), |
|
273 | 274 | "domain": domain, |
@@ -336,15 +337,16 b' class changeset_templater(object):' | |||
|
336 | 337 | def write_header(self, thing): |
|
337 | 338 | self.write(thing, header=True) |
|
338 | 339 | |
|
339 |
def show(self, rev=0, changenode=None, brinfo=None |
|
|
340 | def show(self, rev=0, changenode=None, brinfo=None, changes=None, | |
|
341 | **props): | |
|
340 | 342 | '''show a single changeset or file revision''' |
|
341 | 343 | log = self.repo.changelog |
|
342 | 344 | if changenode is None: |
|
343 | 345 | changenode = log.node(rev) |
|
344 | 346 | elif not rev: |
|
345 | 347 | rev = log.rev(changenode) |
|
346 | ||
|
347 | changes = log.read(changenode) | |
|
348 | if changes is None: | |
|
349 | changes = log.read(changenode) | |
|
348 | 350 | |
|
349 | 351 | def showlist(name, values, plural=None, **args): |
|
350 | 352 | '''expand set of values. |
@@ -453,7 +455,7 b' class changeset_templater(object):' | |||
|
453 | 455 | showadds = '' |
|
454 | 456 | showdels = '' |
|
455 | 457 | |
|
456 | props = { | |
|
458 | defprops = { | |
|
457 | 459 | 'author': changes[1], |
|
458 | 460 | 'branches': showbranches, |
|
459 | 461 | 'date': changes[2], |
@@ -467,6 +469,8 b' class changeset_templater(object):' | |||
|
467 | 469 | 'rev': rev, |
|
468 | 470 | 'tags': showtags, |
|
469 | 471 | } |
|
472 | props = props.copy() | |
|
473 | props.update(defprops) | |
|
470 | 474 | |
|
471 | 475 | try: |
|
472 | 476 | if self.ui.debugflag and 'header_debug' in self.t: |
General Comments 0
You need to be logged in to leave comments.
Login now