##// END OF EJS Templates
templatespec: logcmdutil.templatespec() gets either template or mapfile...
Martin von Zweigbergk -
r45825:dfb67cd1 default
parent child Browse files
Show More
@@ -603,12 +603,13 b' class changesettemplater(changesetprinte'
603 603
604 604
605 605 def templatespec(tmpl, mapfile):
606 if pycompat.ispy3:
607 assert not isinstance(tmpl, str), b'tmpl must not be a str'
606 assert not (tmpl and mapfile)
608 607 if mapfile:
609 return formatter.templatespec(b'changeset', tmpl, mapfile)
608 return formatter.mapfile_templatespec(b'changeset', mapfile)
610 609 else:
611 return formatter.templatespec(b'', tmpl, None)
610 if pycompat.ispy3:
611 assert not isinstance(tmpl, str), b'tmpl must not be a str'
612 return formatter.literal_templatespec(tmpl)
612 613
613 614
614 615 def _lookuptemplate(ui, tmpl, style):
General Comments 0
You need to be logged in to leave comments. Login now