mercurial/dirstate.py
changeset 4446 30e7aa755efd
parent 4375 109077e7048d
parent 4440 2d32e3ae01a7
child 4507 289ec1f36b11
--- a/mercurial/dirstate.py	Thu May 17 20:09:52 2007 -0700
+++ b/mercurial/dirstate.py	Sat May 19 22:51:43 2007 +0200
@@ -66,6 +66,8 @@
         syntaxes = {'re': 'relre:', 'regexp': 'relre:', 'glob': 'relglob:'}
         def parselines(fp):
             for line in fp:
+                if not line.endswith('\n'):
+                    line += '\n'
                 escape = False
                 for i in xrange(len(line)):
                     if escape: escape = False