Submitter | Yuya Nishihara |
---|---|
Date | Jan. 15, 2018, 1:26 p.m. |
Message ID | <670bc1871d139b1e9cf6.1516022802@mimosa> |
Download | mbox | patch |
Permalink | /patch/26769/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1725,7 +1725,8 @@ class changeset_printer(object): diffordiffstat(self.ui, self.repo, diffopts, prev, node, match=matchfn, stat=False, hunksfilterfn=hunksfilterfn) - self.ui.write("\n") + if stat or diff: + self.ui.write("\n") class jsonchangeset(changeset_printer): '''format changeset information.'''