[viewvc-dev] [PATCH] DiffSource change
Alexey Neyman <[email protected]> Thu, 27 Oct 2011 17:16:27 -0700
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.devel |
|---|---|
| Message-ID | <201110271716.28384.stilor__18905.9626929977$1319761000$gmane$org@att.net> |
Hi, Attached is a small change to DiffSource that makes the changes in the lines without newline at the end to be displayed as changes, not as removals and readditions. Okay for trunk? Regards, Alexey. ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4251&dsMessageId=2865512 To unsubscribe from this discussion, e-mail: [[email protected]].
no-backslash.diff
(text/x-patch, 595 B)
Index: lib/viewvc.py
===================================================================
--- lib/viewvc.py (revision 2652)
+++ lib/viewvc.py (working copy)
@@ -3002,10 +3002,8 @@
if line[0] == '\\':
# \ No newline at end of file
-
- # move into the flushing state. note: it doesn't matter if we really
- # have data to flush or not; that will be figured out later
- self.state = 'flush-' + self.state
+ # Just skip. Moving to flush state results in changes being displayed
+ # as removals-and-readditions.
return None
diff_code = line[0]