[PATCH 02 of 11] copies: limit is an optimization, and doesn't provide guarantees (issue4028)

Gábor Stefanik gabor.stefanik at nng.com
Tue Oct 4 10:39:45 EDT 2016


# HG changeset patch
# User Gábor Stefanik <gabor.stefanik at nng.com>
# Date 1475504395 -7200
#      Mon Oct 03 16:19:55 2016 +0200
# Node ID 39fce69a645a8f1f20d67ed953d5822212fb81d0
# Parent  cfc612bc0aa84bd1d6b0a3fe67ee6385e0d9685b
copies: limit is an optimization, and doesn't provide guarantees (issue4028)

diff -r cfc612bc0aa8 -r 39fce69a645a mercurial/copies.py
--- a/mercurial/copies.py	Mon Oct 03 13:18:31 2016 +0200
+++ b/mercurial/copies.py	Mon Oct 03 16:19:55 2016 +0200
@@ -466,6 +466,11 @@
     diverge = record all diverges in this dict
     copy = record all non-divergent copies in this dict
     fullcopy = record all copies in this dict
+
+    note: limit is only an optimization, and there is no guarantee that
+    irrelevant revisions will not be limited
+    there is no easy way to make this algorithm stop in a guaranteed way
+    once it "goes behind a certain revision".
     """
 
     ma = ca.manifest()


More information about the Mercurial-devel mailing list