##// 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 def templatespec(tmpl, mapfile):
605 def templatespec(tmpl, mapfile):
606 assert not (tmpl and mapfile)
607 if mapfile:
608 return formatter.mapfile_templatespec(b'changeset', mapfile)
609 else:
606 if pycompat.ispy3:
610 if pycompat.ispy3:
607 assert not isinstance(tmpl, str), b'tmpl must not be a str'
611 assert not isinstance(tmpl, str), b'tmpl must not be a str'
608 if mapfile:
612 return formatter.literal_templatespec(tmpl)
609 return formatter.templatespec(b'changeset', tmpl, mapfile)
610 else:
611 return formatter.templatespec(b'', tmpl, None)
612
613
613
614
614 def _lookuptemplate(ui, tmpl, style):
615 def _lookuptemplate(ui, tmpl, style):
General Comments 0
You need to be logged in to leave comments. Login now