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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Edited

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

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

Comment

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

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,693 views 4 12
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