changeset 4089:ecd90548a10d stable

stablerange: only issue the message once There is a flag to prevent issuing the long load message multiple time. However, it was never set. This is now fixed
author Gerald Squelart <gsquelart@mozilla.com>
date Thu, 06 Sep 2018 23:24:26 -0400
parents 9caf73470c2b
children 6179a40d27c7
files CHANGELOG hgext3rd/evolve/stablerangecache.py
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGELOG	Fri Sep 07 00:06:00 2018 -0400
+++ b/CHANGELOG	Thu Sep 06 23:24:26 2018 -0400
@@ -1,6 +1,11 @@
 Changelog
 =========
 
+8.2.1 - in progress
+-------------------
+
+  * obshashrange: issue the "long stable cache" update message only once
+
 8.2.0 -- 2018-09-03
 -------------------
 
--- a/hgext3rd/evolve/stablerangecache.py	Fri Sep 07 00:06:00 2018 -0400
+++ b/hgext3rd/evolve/stablerangecache.py	Thu Sep 06 23:24:26 2018 -0400
@@ -94,6 +94,7 @@
                     progress_new = time.time()
                     if not warned_long and LONG_WARNING_TIME < (progress_new - initial_time):
                         repo.ui.warn(LONG_MESSAGE)
+                        warned_long = True
                     if (1 < progress_each) and (0.1 < progress_new - progress_last):
                         progress_each /= 10
                     ui.progress(_("filling stablerange cache"), seen,