copies: delete misplaced comment
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 07 May 2019 14:42:15 -0700
changeset 42259 d1c7446d0c58
parent 42258 231334c1ee96
child 42260 d5b35d6972a5
copies: delete misplaced comment The comment was added in 78d760aa3607 (duplicatecopies: do not mark items not in the dirstate as copies, 2013-03-28). It became misplaced in 3666331164bb (cmdutil: add copy-filtering support to duplicatecopies, 2014-06-07). Then the relevant code was moved far away in 754b5117622f (context: add workingfilectx.markcopied, 2017-10-15). Differential Revision: https://phab.mercurial-scm.org/D6352
mercurial/copies.py
--- a/mercurial/copies.py	Mon Apr 22 18:55:27 2019 +0100
+++ b/mercurial/copies.py	Tue May 07 14:42:15 2019 -0700
@@ -796,8 +796,6 @@
         # metadata across the rebase anyway).
         exclude = pathcopies(repo[fromrev], repo[skiprev])
     for dst, src in pathcopies(repo[fromrev], repo[rev]).iteritems():
-        # copies.pathcopies returns backward renames, so dst might not
-        # actually be in the dirstate
         if dst in exclude:
             continue
         wctx[dst].markcopied(src)