Commits

Benoît Allard committed 9bc0c78

rename variable so that nfiles is called nfiles all the way (forgotten qrefresh)

  • Participants
  • Parent commits 89b6400

Comments (0)

Files changed (1)

 
     b = getb()
 
-    endlist = opts.get('nfiles', 10)
+    nfiles = opts.get('nfiles', 10)
 
     excludeglob = ui.configlist('hotfiles', 'exclude.glob', [])
     excludeglob.extend(opts.get('exclude', []))
         pos += 1
     ui.progress('score', None)
 
-    d = sorted(d, key=lambda x: x[1], reverse=True)[:endlist]
+    d = sorted(d, key=lambda x: x[1], reverse=True)[:nfiles]
 
     if d:
         max = d[0][1]