[PATCH 3 of 8] Add filesystem path to dirstate.statwalk return value

Matt Mackall mpm at selenic.com
Thu May 1 13:27:24 CDT 2008


>                      for f, src, st in findfiles(f):
> -                        yield src, f, st
> +                        if src == 'm':
> +                            yield src, f, f, st
> +                        else:
> +                            yield src, f, fspath(f), st

findfiles presumable returns things -only- in the case on the
filesystem, so fspath here is redundant. In fact, we'd actually need a
dirstatepath(f) here, because various things will be expecting to get
filenames as they are in the dirstate/manifest.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list