# HG changeset patch # User Anton Shestakov <av6@dwimlabs.net> # Date 1720819311 -14400 # Node ID 46c4db4da92385a69a872b484d70ef43d21bc8da # Parent 3b05199aaae2b445983ebea1798e4ef7cda1b548 .hgrc: use last(::x) instead of ancestor(x) in actualize-topic This seems to work in most (if not all) situations, as long as there is a public ancestor for the topic to be rebased on. diff -r 3b05199aaae2 -r 46c4db4da923 .hgrc --- a/.hgrc Sat Jul 13 01:20:28 2024 +0400 +++ b/.hgrc Sat Jul 13 01:21:51 2024 +0400 @@ -28,7 +28,7 @@ stripout = strip -r 'outgoing()' crecord = !$HG commit --interactive --config ui.interface=curses "$@" reword = commit -X 're:' --amend -actualize-topic = rebase -s 'topic($1)' -d 'branch(ancestor(topic($1))) and public()' +actualize-topic = rebase -s 'topic($1)' -d 'branch(last(::topic($1) and public()))' . = pvr . in-release = log -r '$1 + min($1:: and tag())'