Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.2, 0.7.3, and 0.7.4

hgignore: fix behaviour when .hgignore file is empty

fixes #115

Changeset 2bc6d4d2a1d7

Parent d3325fa006f9

by Steve Borho

Changes to one file · Browse files at 2bc6d4d2a1d7 Showing diff from parent d3325fa006f9 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​hgignore.py Stacked
 
161
162
163
164
 
165
166
167
 
161
162
163
 
164
165
166
167
@@ -161,7 +161,7 @@
  try:   l = open(repo.wjoin('.hgignore'), 'rb').readlines()   self.doseoln = l[0].endswith('\r\n') - except (IOError, ValueError): + except (IOError, ValueError, IndexError):   self.doseoln = os.name == 'nt'   l = []