changeset 1258:85fe080461c6 stable

genignore: fitler out empty lines in svn:ignore.
author peter.geer
date Thu, 13 Nov 2014 22:09:06 -0500
parents ee4d0f91eaf9
children 5ee3e5030a35 b5520673f6f2
files hgsubversion/svncommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svncommands.py
+++ b/hgsubversion/svncommands.py
@@ -370,7 +370,7 @@ def genignore(ui, repo, force=False, **o
         if 'svn:ignore' not in props:
             continue
         lines = props['svn:ignore'].strip().split('\n')
-        ignorelines += [dir and (dir + '/' + prop) or prop for prop in lines]
+        ignorelines += [dir and (dir + '/' + prop) or prop for prop in lines if prop.strip()]
 
     repo.wopener('.hgignore', 'w').write('\n'.join(ignorelines) + '\n')