context: delete mistaken comment about return value of renamed()
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 21 Jan 2019 13:45:12 -0800
changeset 41395 9087513df412
parent 41394 75e753a26806
child 41396 3461814417f3
context: delete mistaken comment about return value of renamed() The comment seems to think that the return value of renamed() is a tuple of source pathsx in the parents, but it's actually a pair of (rename source path, file nodeid). Differential Revision: https://phab.mercurial-scm.org/D5639
mercurial/context.py
--- a/mercurial/context.py	Tue Jan 15 16:55:20 2019 -0800
+++ b/mercurial/context.py	Mon Jan 21 13:45:12 2019 -0800
@@ -2178,8 +2178,6 @@
     """
     def getfilectx(repo, memctx, path):
         fctx = ctx[path]
-        # this is weird but apparently we only keep track of one parent
-        # (why not only store that instead of a tuple?)
         copied = fctx.renamed()
         if copied:
             copied = copied[0]