mercurial/hg.py
changeset 892 f481c9b6786e
parent 886 509de8ab6f31
child 894 62ec665759f2
equal deleted inserted replaced
891:a9b843b114f9 892:f481c9b6786e
   500                     continue
   500                     continue
   501                 if stat.S_ISDIR(st.st_mode):
   501                 if stat.S_ISDIR(st.st_mode):
   502                     for dir, subdirs, fl in os.walk(f):
   502                     for dir, subdirs, fl in os.walk(f):
   503                         d = dir[len(self.root) + 1:]
   503                         d = dir[len(self.root) + 1:]
   504                         nd = util.normpath(d)
   504                         nd = util.normpath(d)
       
   505                         if nd == '.': nd = ''
   505                         if seen(nd):
   506                         if seen(nd):
   506                             subdirs[:] = []
   507                             subdirs[:] = []
   507                             continue
   508                             continue
   508                         for sd in subdirs:
   509                         for sd in subdirs:
   509                             ds = os.path.join(nd, sd +'/')
   510                             ds = os.path.join(nd, sd +'/')