hgext/relink.py
changeset 11357 7914628b4751
parent 11355 9011036ba79d
child 12062 c327bfa5e831
equal deleted inserted replaced
11356:511445840148 11357:7914628b4751
    70     src = src.store.path
    70     src = src.store.path
    71     pos = 0
    71     pos = 0
    72     ui.status(_("tip has %d files, estimated total number of files: %s\n")
    72     ui.status(_("tip has %d files, estimated total number of files: %s\n")
    73               % (live, total))
    73               % (live, total))
    74     for dirpath, dirnames, filenames in os.walk(src):
    74     for dirpath, dirnames, filenames in os.walk(src):
       
    75         dirnames.sort()
    75         relpath = dirpath[len(src) + seplen:]
    76         relpath = dirpath[len(src) + seplen:]
    76         for filename in filenames:
    77         for filename in sorted(filenames):
    77             if not filename[-2:] in ('.d', '.i'):
    78             if not filename[-2:] in ('.d', '.i'):
    78                 continue
    79                 continue
    79             st = os.stat(os.path.join(dirpath, filename))
    80             st = os.stat(os.path.join(dirpath, filename))
    80             if not stat.S_ISREG(st.st_mode):
    81             if not stat.S_ISREG(st.st_mode):
    81                 continue
    82                 continue