changeset 41395:9087513df412

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
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 21 Jan 2019 13:45:12 -0800
parents 75e753a26806
children 3461814417f3
files mercurial/context.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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]