Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

SourceTree 3.1.2 Mercurial on Mac is unbearably slow (Invokes Python 5 times?)



Just created a fresh local repos, added 2 files, 2 commits. Looking at one files takes 5 seconds. During that time it seems at least 5 new Python processes are started.

Is this normal?

Attached GIF screen capture, not sure it works here, but it shows how it looks. (It may look like one Python process, but look at the PIDs.)

SourceTree 3.1.2 (216), using Embedded Mercurial 4.6.1, macOS 10.14.4

Kind regards


1 comment

Found the Debug menu.

These are the commands being issued in the above sequence:

Screenshot 2019-04-25 at 14.04.29 .png

So 7 invocations of Python. These are all the arguments:

diff -y -U 3 --change 1 path:hello.txt

cat -y -r 1 path:hello.txt

log -y --template {node}␞{parents}␞{date|isodatesec}␞{branches}␞{author}␞{desc}␞{tags}␞{svnrev}␞{node|short}␞ -r 1

cat -y -r 0 path:hello.txt

cat -y -r 1 path:hello.txt

log -y --template {node}␞{parents}␞{date|isodatesec}␞{branches}␞{author}␞{desc}␞{tags}␞{svnrev}␞{node|short}␞ -r 1

cat -y -r 0 path:hello.txt

Thinking out loud:

  • The 'export/log/export'-trio is executed twice, with exactly the same arguments?
  • What's the 'export/log/export' about anyway? Is it really necessary? Isn't all the info needed to refresh the view given by 'diff' alone?

Sorry for chain posting.

I tried to disable all the Sourcetree › Preferences › Mercurial - Extensions I could (shelve, hgsubversion, hgflow), and the timings improved:

Screenshot 2019-04-25 at 14.24.01 .png

Better, still, this seems weirdly slow to me.

This is what 'diff' takes using Mercurial 4.9.1 from MacPorts:

Screenshot 2019-04-25 at 14.25.23 .png

What is going on?

Also, is there any way I can use Mercurial from MacPorts in Sourcetree instead? (It's not installed in any 'site-packages'-folder.)


Log in or Sign up to comment
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,427 views 127 27
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you