##// END OF EJS Templates
fix 'hg <not-log> -v --template foo' with revisions without copies
Alexis S. L. Carvalho -
r4351:3380eb6d default
parent child Browse files
Show More
@@ -224,7 +224,7 class changeset_printer(object):
224 return 1
224 return 1
225 return 0
225 return 0
226
226
227 def show(self, rev=0, changenode=None, copies=None, **props):
227 def show(self, rev=0, changenode=None, copies=(), **props):
228 if self.buffered:
228 if self.buffered:
229 self.ui.pushbuffer()
229 self.ui.pushbuffer()
230 self._show(rev, changenode, copies, props)
230 self._show(rev, changenode, copies, props)
@@ -39,6 +39,9 hg log --debug > log.out
39 hg log --debug --style default > style.out
39 hg log --debug --style default > style.out
40 diff log.out style.out
40 diff log.out style.out
41
41
42 echo '# revision with no copies (used to print a traceback)'
43 hg tip -v --template '\n'
44
42 echo '# compact style works'
45 echo '# compact style works'
43 hg log --style compact
46 hg log --style compact
44 hg log -v --style compact
47 hg log -v --style compact
@@ -2,6 +2,8
2 # normal
2 # normal
3 # verbose
3 # verbose
4 # debug
4 # debug
5 # revision with no copies (used to print a traceback)
6
5 # compact style works
7 # compact style works
6 4[tip] 32a18f097fcc 1970-01-17 04:53 +0000 person
8 4[tip] 32a18f097fcc 1970-01-17 04:53 +0000 person
7 new branch
9 new branch
General Comments 0
You need to be logged in to leave comments. Login now