hgext/graphlog.py
changeset 17120 01d847e0fdc9
parent 17119 2e13c1bd34dc
child 17162 868c256cb51b
--- a/hgext/graphlog.py	Wed Jul 04 17:29:49 2012 +0200
+++ b/hgext/graphlog.py	Fri Jul 06 00:30:18 2012 +0200
@@ -471,7 +471,9 @@
         if filematcher is not None:
             revmatchfn = filematcher(ctx.rev())
         displayer.show(ctx, copies=copies, matchfn=revmatchfn)
-        lines = displayer.hunk.pop(rev).split('\n')[:-1]
+        lines = displayer.hunk.pop(rev).split('\n')
+        if not lines[-1]:
+            del lines[-1]
         displayer.flush(rev)
         edges = edgefn(type, char, lines, seen, rev, parents)
         for type, char, lines, coldata in edges: