No module named mergestate
Hi all,
After upgrading to Ubuntu 20 LTS, TortoiseHG is no longer available. So I have to build it from source. I have successfully built THG from source with Mercurial 5.3.x branch.
Lately, I have upgraded Mercurial via Python pip to 5.6.x and the old build of THG on Mercurial 5.3.x broke, saying that Mercurial 5.3.x is required.
So, I checked out the THG repository and built on the branch 'stable'. Anything sounded fine, I could start THG UI. Nonetheless, whenever I start pulling incoming changes (from the Menu button), I got an error failed to import extension tortoisehg.util.hgcommands: No module named mergestate
as following.
*** failed to import extension tortoisehg.util.hgcommands: No module named mergestate
% hg pull --verbose ssh://xxx
pulling from xxx
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
new changesets 8377967c8cd2
(run 'hg update' to get a working copy)
Regardless the error, the command 'hg pull' seemed to be successful. And the error only shows for the first 'hg pull'. The subsequent pulls are ok, no error showed.
Here is the version information.
TortoiseHg Dialogues (version 5.6+2-0332d8da5f8c), Mercurial (version 5.6)