mercurial/dirstate.py
changeset 1228 db950da49539
parent 1224 cc61d366bc3b
child 1230 6eac821c202c
equal deleted inserted replaced
1227:e3ea354d99b2 1228:db950da49539
   250                 for f in names:
   250                 for f in names:
   251                     np = os.path.join(nd, f)
   251                     np = os.path.join(nd, f)
   252                     if seen(np):
   252                     if seen(np):
   253                         continue
   253                         continue
   254                     p = os.path.join(top, f)
   254                     p = os.path.join(top, f)
   255                     st = os.stat(p)
   255                     # don't trip over symlinks
       
   256                     st = os.lstat(p)
   256                     if stat.S_ISDIR(st.st_mode):
   257                     if stat.S_ISDIR(st.st_mode):
   257                         ds = os.path.join(nd, f +'/')
   258                         ds = os.path.join(nd, f +'/')
   258                         if statmatch(ds, st):
   259                         if statmatch(ds, st):
   259                             work.append(p)
   260                             work.append(p)
   260                     else:
   261                     else: