branching: merge with stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 15 Dec 2023 11:08:41 +0100
changeset 51183 028498b04a84
parent 51173 933551630b0d (current diff)
parent 51175 1486d8c63f64 (diff)
child 51184 a9f96e809c2a
branching: merge with stable This recreates `37b52b938579` right as a `hg branch --rev 5b186ba40001` screwed up the content.
--- a/hgext/histedit.py	Thu Dec 07 09:31:07 2023 -0800
+++ b/hgext/histedit.py	Fri Dec 15 11:08:41 2023 +0100
@@ -1760,8 +1760,6 @@
             rules.append(histeditrule(ui, repo[r], i))
         with util.with_lc_ctype():
             rc = curses.wrapper(functools.partial(_chisteditmain, repo, rules))
-        curses.echo()
-        curses.endwin()
         if rc is False:
             ui.write(_(b"histedit aborted\n"))
             return 0
--- a/mercurial/revlogutils/nodemap.py	Thu Dec 07 09:31:07 2023 -0800
+++ b/mercurial/revlogutils/nodemap.py	Fri Dec 15 11:08:41 2023 +0100
@@ -163,6 +163,8 @@
 
 def persist_nodemap(tr, revlog, pending=False, force=False):
     """Write nodemap data on disk for a given revlog"""
+    if len(revlog.index) <= 0:
+        return
     if getattr(revlog, 'filteredrevs', ()):
         raise error.ProgrammingError(
             "cannot persist nodemap of a filtered changelog"