changeset 535:715d2e3e153b

stupid: port hack from stupid to moderately stupid mode
author Patrick Mezard <pmezard@gmail.com>
date Sat, 30 Jan 2010 09:55:28 +0100
parents e38f110e7088
children 460eb781d840
files hgsubversion/stupid.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/stupid.py
+++ b/hgsubversion/stupid.py
@@ -446,6 +446,10 @@ def fetch_branchrev(svn, meta, branch, b
         isexec = 'x' in mode
         islink = 'l' in mode
         copied = copies.get(path)
+        # TODO this branch feels like it should not be required,
+        # and this may actually imply a bug in getcopies
+        if copied not in parentctx.manifest():
+            copied = None
         return context.memfilectx(path=path, data=data, islink=islink,
                                   isexec=isexec, copied=copied)