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

hgignore: fix bugs found by pychecker

Changeset 0d54968c0a23

Parent 601619d65041

by Steve Borho

Changes to one file · Browse files at 0d54968c0a23 Showing diff from parent 601619d65041 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​hgignore.py Stacked
 
149
150
151
152
153
 
 
 
154
155
156
157
158
159
160
 
161
162
163
 
149
150
151
 
 
152
153
154
155
156
157
158
159
160
 
161
162
163
164
@@ -149,15 +149,16 @@
  try: repo = hg.repository(ui.ui(), path=self.root)   except: gtk.main_quit()   matcher = match.always(repo.root, repo.root) - changes = repo.dirstate.status(matcher, ignored=False, clean=False, unknown=True) - (lookup, modified, added, removed, deleted, unknown, ignored, clean) = changes + changes = repo.dirstate.status(matcher, unknown=True) + (lookup, modified, added, removed, + deleted, unknown, ignored, clean) = changes   self.unkmodel.clear()   for u in unknown:   self.unkmodel.append([u])   try:   l = open(repo.wjoin('.hgignore'), 'rb').readlines()   self.doseoln = l[0].endswith('\r\n') - except IOError, ValueError: + except (IOError, ValueError), e:   self.doseoln = os.name == 'nt'   l = []