Patchwork D9793: copies: fix some comment in _filter

login
register
mail settings
Submitter phabricator
Date Jan. 15, 2021, 11:09 p.m.
Message ID <differential-rev-PHID-DREV-zmhb2psqmp3aiupeakn5-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48104/
State Superseded
Headers show

Comments

phabricator - Jan. 15, 2021, 11:09 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The scenario the comment describes match case 6, not case 2.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9793

AFFECTED FILES
  mercurial/copies.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/copies.py b/mercurial/copies.py
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -41,7 +41,7 @@ 
 
     # When _chain()'ing copies in 'a' (from 'src' via some other commit 'mid')
     # with copies in 'b' (from 'mid' to 'dst'), we can get the different cases
-    # in the following table (not including trivial cases). For example, case 2
+    # in the following table (not including trivial cases). For example, case 6
     # is where a file existed in 'src' and remained under that name in 'mid' and
     # then was renamed between 'mid' and 'dst'.
     #