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"