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 refusing to push changes


Last week I committed some changes but it failed

Attempts to push now just sit there for two or three *HOURS* before failing

hg push --new-branch Phix
pushing to
searching for changes
** Unknown exception encountered with possibly-broken third-party extension hgflow
** which supports versions unknown of Mercurial.
** Please disable hgflow and try your action again.
** If that fixes the bug please report it to the extension author.
** Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
** Mercurial Distributed SCM (version 4.5.2)
** Extensions loaded: eol, rebase, transplant, extdiff, fetch, strip, mq, hgflow, shelve, mercurial_credential_manager

I tried updating everything I could (On Windows 10, Sourcetree, mercurial, python, and pip), and just got further lost.

I believe python is now 2.7.16 and mercurial (embedded) is 4.8.1

I disabled hgflow and got

Traceback (most recent call last):
File "hg", line 41, in <module>
File "mercurial\dispatch.pyc", line 88, in run
File "mercurial\dispatch.pyc", line 183, in dispatch
File "mercurial\dispatch.pyc", line 324, in _runcatch
File "mercurial\dispatch.pyc", line 332, in _callcatch
File "mercurial\scmutil.pyc", line 154, in callcatch
File "mercurial\dispatch.pyc", line 314, in _runcatchfunc
File "mercurial\dispatch.pyc", line 918, in _dispatch
File "mercurial\dispatch.pyc", line 673, in runcommand
File "mercurial\dispatch.pyc", line 926, in _runcommand
File "mercurial\dispatch.pyc", line 915, in <lambda>
File "mercurial\util.pyc", line 1195, in check
File "mercurial\util.pyc", line 1195, in check
File "hgext\mq.pyc", line 3583, in mqcommand
File "mercurial\util.pyc", line 1195, in check
File "mercurial\commands.pyc", line 4194, in push
File "mercurial\exchange.pyc", line 482, in push
File "mercurial\exchange.pyc", line 1041, in _pushbundle2
File "mercurial\wireproto.pyc", line 386, in unbundle
File "mercurial\httppeer.pyc", line 465, in _calltwowaystream
File "mercurial\httppeer.pyc", line 336, in _callstream
File "mercurial\httppeer.pyc", line 193, in _openurl
File "urllib2.pyc", line 435, in open
File "urllib2.pyc", line 548, in http_response
File "urllib2.pyc", line 467, in error
File "urllib2.pyc", line 407, in _call_chain
File "urllib2.pyc", line 909, in http_error_401
File "mercurial\url.pyc", line 422, in http_error_auth_reqed
File "C:/Users/Pete/AppData/Local/Atlassian/SourceTree/hg_extras/", line 437, in basic_http_error_auth_reqed
return basic_http_error_auth_reqed.orig(self, authreq, host, req, headers)
File "urllib2.pyc", line 887, in http_error_auth_reqed
File "mercurial\url.pyc", line 426, in retry_http_basic_auth
File "C:/Users/Pete/AppData/Local/Atlassian/SourceTree/hg_extras/", line 428, in find_user_password
return self._pwd_handler.find_auth(self, realm, authuri, req)
File "C:/Users/Pete/AppData/Local/Atlassian/SourceTree/hg_extras/", line 259, in find_auth
if username[0]:
IndexError: list index out of range

Nothing has shown up on the web site.

Another try:

hg push --new-branch Phix
pushing to
searching for changes

abort: http error, possibly caused by proxy setting
Completed with errors, see above.
I tried to force the push and much later got a "password not set" message.
Changing it and deleting all saved passwords did not help.
(the logfile contains nothing beyond the commit desc).

hg commit -y --debug --traceback --logfile C:\Users\Pete\AppData\Local\Temp\ciyrpi5k.lpf
committing files:
committing manifest
committing changelog
updating the branch cache
committed changeset 120:b4bd842de5f1418cc2dc92cd27429bf03faa32d7

hg push --debug --traceback --new-branch Phix
pushing to
http auth: user petelomax, password not set
sending capabilities command
query 1; heads
sending batch command
searching for changes
all remote heads known locally
preparing listkeys for "phases"
sending listkeys command
received listkey for "phases": 15 bytes
checking for updated bookmarks
preparing listkeys for "bookmarks"
sending listkeys command
received listkey for "bookmarks": 0 bytes
sending branchmap command
preparing listkeys for "bookmarks"
sending listkeys command
received listkey for "bookmarks": 0 bytes
7 changesets found
list of changesets:
bundle2-output-bundle: "HG20", 5 parts total
bundle2-output-part: "replycaps" 205 bytes payload
bundle2-output-part: "check:phases" 24 bytes payload
bundle2-output-part: "check:heads" streamed payload
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
bundle2-output-part: "phase-heads" 24 bytes payload
sending unbundle command
sending 62264059 bytes
mercurial-credential-manager: base url:, url user: , url pwd:
mercurial-credential-manager: Checking for hgrc info about url, user petelomax
mercurial-credential-manager: Password url:, user: petelomax, password: (prefix: None)
mercurial-credential-manager: mercurial-credential-manager: GUI GET: C:\Users\Pete\AppData\Local\Atlassian\SourceTree\hg_extras\mercurial-credential-manager.exe.

mercurial-credential-manager: mercurial-credential-manager: GUI GET:command= username=petelomax

Also, on I am seeing "Repo activity is currently unavailable"

Oh, and there is no number under the push icon

Help needed!

1 answer

1 accepted

0 votes
Answer accepted

Solved: I (re-)installed the latest version of tortoisehg and ran tortoisehg workbench.

The last six or so pushes were shown with "phase" as "draft", so I changed each to "public" and pushed from there. There was no indication in sourcetree of anything being draft, I think I'll stop using sourcetree and switch to workbench from now on.

Suggest an answer

Log in or Sign up to answer
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...

7,103 views 5 13
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