# HG changeset patch # User Alexis S. L. Carvalho # Date 2007-04-16 16:00:23 # Node ID 3380eb6d7c32b882292ce8f6a8691bcdcade6478 # Parent b633f470944e94c10348aeed07ea898b26032698 fix 'hg -v --template foo' with revisions without copies diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -224,7 +224,7 @@ class changeset_printer(object): return 1 return 0 - def show(self, rev=0, changenode=None, copies=None, **props): + def show(self, rev=0, changenode=None, copies=(), **props): if self.buffered: self.ui.pushbuffer() self._show(rev, changenode, copies, props) diff --git a/tests/test-command-template b/tests/test-command-template --- a/tests/test-command-template +++ b/tests/test-command-template @@ -39,6 +39,9 @@ hg log --debug > log.out hg log --debug --style default > style.out diff log.out style.out +echo '# revision with no copies (used to print a traceback)' +hg tip -v --template '\n' + echo '# compact style works' hg log --style compact hg log -v --style compact diff --git a/tests/test-command-template.out b/tests/test-command-template.out --- a/tests/test-command-template.out +++ b/tests/test-command-template.out @@ -2,6 +2,8 @@ # normal # verbose # debug +# revision with no copies (used to print a traceback) + # compact style works 4[tip] 32a18f097fcc 1970-01-17 04:53 +0000 person new branch