All pastes #1927313 Raw Edit

nicdumz

public text v1 · immutable
#1927313 ·published 2010-08-28 02:41 UTC
rendered paste body
# Nicolas Dumazet, 2010# WTFPLfrom mercurial.store import decodefilenameimport ospath = ".hg/store/data"filelist = []for dirpath, dirnames, filenames in os.walk(path):    rel = dirpath[len(path)+1:]    # -2 is for the .i suffix    filelist += [rel + decodefilename(f[:-2]) for f in filenames]print filelist