Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

kraybit April 23, 2019

Hi!

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

Sourcetree_3.1.2_Mercurial_browse_slow.gif

1 comment

kraybit April 25, 2019

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?
kraybit April 25, 2019

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.)

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events