(Arne Babenhauserheide)
2011-10-20: survive moved files. TODO: follow renames. survive moved files. TODO: follow renames.
diff --git a/site.py b/site.py --- a/site.py +++ b/site.py @@ -243,7 +243,10 @@ def writesourcetree(ui, repo, target, na for c in range(len(repo.changelog)): ctx = repo.changectx(str(c)) for filename in ctx.files(): - filectx = ctx[filename] + try: + filectx = ctx.filectx(filename) + except LookupError, e: + ui.warn("File not found, likely moved ", e, "\n") # first write the raw data filepath = rawpath(target,ctx,filectx.path()) # skip already existing files