# HG changeset patch
# User Gerald Squelart <gsquelart@mozilla.com>
# Date 1536290666 14400
#      Thu Sep 06 23:24:26 2018 -0400
# Branch stable
# Node ID ecd90548a10dcb17ebe5641fb78981663e9ef14c
# Parent  9caf73470c2b301f0c510a1caf8fca04930c96a6
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

diff --git a/CHANGELOG b/CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -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
 -------------------
 
diff --git a/hgext3rd/evolve/stablerangecache.py b/hgext3rd/evolve/stablerangecache.py
--- a/hgext3rd/evolve/stablerangecache.py
+++ b/hgext3rd/evolve/stablerangecache.py
@@ -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,