mercurial/copies.py
changeset 42318 313812cbf4ca
parent 42259 d1c7446d0c58
child 42344 c361db7a5f14
--- a/mercurial/copies.py	Wed May 15 16:10:52 2019 -0700
+++ b/mercurial/copies.py	Wed Jan 09 15:54:45 2019 -0800
@@ -798,4 +798,5 @@
     for dst, src in pathcopies(repo[fromrev], repo[rev]).iteritems():
         if dst in exclude:
             continue
-        wctx[dst].markcopied(src)
+        if dst in wctx:
+            wctx[dst].markcopied(src)