equal
deleted
inserted
replaced
306 st = os.lstat(p) |
306 st = os.lstat(p) |
307 if stat.S_ISDIR(st.st_mode): |
307 if stat.S_ISDIR(st.st_mode): |
308 ds = os.path.join(nd, f +'/') |
308 ds = os.path.join(nd, f +'/') |
309 if statmatch(ds, st): |
309 if statmatch(ds, st): |
310 work.append(p) |
310 work.append(p) |
311 elif supported_type(np, st): |
311 elif statmatch(np, st) and supported_type(np, st): |
312 if statmatch(np, st): |
312 yield util.pconvert(np) |
313 yield util.pconvert(np) |
|
314 |
313 |
315 |
314 |
316 known = {'.hg': 1} |
315 known = {'.hg': 1} |
317 def seen(fn): |
316 def seen(fn): |
318 if fn in known: return True |
317 if fn in known: return True |
338 ff = util.normpath(ff) |
337 ff = util.normpath(ff) |
339 if seen(ff): |
338 if seen(ff): |
340 continue |
339 continue |
341 found = False |
340 found = False |
342 self.blockignore = True |
341 self.blockignore = True |
343 if supported_type(ff, st) and statmatch(ff, st): |
342 if statmatch(ff, st) and supported_type(ff, st): |
344 found = True |
343 found = True |
345 self.blockignore = False |
344 self.blockignore = False |
346 if found: |
345 if found: |
347 yield 'f', ff |
346 yield 'f', ff |
348 |
347 |