# HG changeset patch # User peter.geer # Date 1415934546 18000 # Node ID 85fe080461c6a475619a4d6b1721447919316645 # Parent ee4d0f91eaf98b56eddcfa04b616de939148f02b genignore: fitler out empty lines in svn:ignore. diff --git a/hgsubversion/svncommands.py b/hgsubversion/svncommands.py --- 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')