youngmon/atlassian-qna huggingface dataset:
I am trying to create a new account and not receiving verification emails
Asked by dbenedetto:

I am not receiving the verification emails to create a new account. I am using this email:

I have submitted a ticket through support.


Answers:
author: Caroline R
body: Hi, [@dbenedetto](/t5/user/viewprofilepage/user-id/2231365),

I saw that you created a ticket with our support related to the same question and they have answered you there, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud

sign-up
How do you download from a repo using urllib3 in python? All examples use requests package
Asked by JERRY MCLAUGHLIN:

Using urllib3 I can't figure out how to pass the id and app password. I can't use requests as this is an AWS Lambda function that does not support the requests package only urllib3. Does anyone know why I'm not able to download the repo?

Curl is easy

curl -u userid:appPassword <https://bitbucket.org/userid/repo_name/get/main.zip> --output repo_name.zip;  
I have this code but it returns a zero byte file main.zip  
import urllib3

import shutil

appPassword='XXXXXXXXXXXX'

url = '<https://bitbucket.org/userid/repo_name/get/main.zip>'

headers = urllib3.make_headers(basic_auth='userid:appPassword')

c = urllib3.PoolManager()

with c.request('GET',url, headers=headers, preload_content=False) as resp, open('main.zip', 'wb') as out_file:

shutil.copyfileobj(resp, out_file)

resp.release_conn()


Answers:
author: Igor Stoyanov
body: [@JERRY MCLAUGHLIN](/t5/user/viewprofilepage/user-id/3992448) Hi. Thanks for your question.  
Maybe this answer is not related to urllib3, but you can add requests to lambda.  
Please check [this article](https://stackoverflow.com/questions/40741282/cannot-use-requests-module-on-aws-lambda).

Regards, Igor.

comments: author: JERRY MCLAUGHLIN
body: Thank you for your reply. requests is no longer a part of the AWS SDK and I want to maintain concurrency for AWS support purposes. <https://aws.amazon.com/blogs/compute/upcoming-changes-to-the-python-sdk-in-aws-lambda/>


Tags: bitbucket-cloud

cloud

python
build cache
Asked by Sumanth Anumolu:

I have my build directory in my local and I wanted to use this directory while building in the pipeline. I don't want to keep this build directory in the artifactory because it is more than 3GB. I want to use the cache inside the build directory for speed build in the pipeline.


Answers:
author: Caroline R
body: Hi, [@Sumanth Anumolu](/t5/user/viewprofilepage/user-id/4740174), thank you for reaching out to Atlassian Community.

We don't have much context about your local directory, but we do have a few suggestions that might help you:

* Currently, Pipelines provides pre-defined cache locations for commonly used language tools, so you could use the pre-defined caches we have, as per this doc:

  * <https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/>

* If these pre-defined caches are not enough for your project, another alternative is to make a custom image. In that case, you can add that folder to your custom image.

* We also have custom caches for other build tools and directories, however, as you said that your directory is larger than 3GB, this alternative would not be possible because only caches under 1GB once compressed are saved.

I hope this helps, but do let me know if you have any questions.

Kind regards,   
Caroline


Tags: bitbucket-cloud

bitbucket-development

bitbucket-pipelines

data-center

scriptrunner

windows
Source Tree stops working because of a large commit, how can I fix it?
Asked by adrian whipexx:

Hi, im using Source Tree+Bitbucket to sync a Visual Studio project between my laptop and my main computer. I've recently decided to sync it so the first commit was quite big, I'm assuming that it's because of this fact that my Source Tree is getting Ram and CPU like crazy. The fun part is that it initially worked and I pushed successfully the project to Bitbucket, but when I pullet it from the other computer (and when I restarted Source Tree on the computer that initially uploaded the project) it got completely stick.

I've tried to leave it for a few hours but I've come to the conclusion that I messed it pretty badly. I've read that there have been problems with similar things since +1.6.8, so this is why I've come here to ask the question.

Does anyone know how to solve the problem?


Answers:
author: minnsey
body: Hi Adrian,

Please update to v1.6.13, released today, and disable the Tree View option, as follows:

1. Open the Tools/Options menu item.
2. Select the General tab.
3. Uncheck the "Enable Tree view as a file list option" checkbox.

This should improve the responsive-ness.


author: adrian whipexx
body: Thanks for the quick response,  
I managed to make my main computer stop freezing by commiting a small change and pushing it; it appears that this way it also stops the problem that was happening. As for the laptop updating to 1.6.13 solved the problem (I've also disabled the view as file option, just in case)

Again, thank you and have a good day.


Tags: bitbucket-cloud

cloud
bit bucket link to clone new mercurial repository in source tree has problems
Asked by Kirsten Greed:

As this screencast demonstrates

<http://screencast.com/t/7FmqAeXkLiH>

when i try to clone a new mercurial repository using the link in bitbucket i get the following error message.

hg clone -b default <https://kirsteng@bitbucket.org/kirsteng/mytest> C:\\Users\\kirsten\\Documents\\mytest

abort: unknown branch 'default'!

Completed with errors, see above.

I can clone successfully using Source Tree itself.


Answers:
author: Andrew Vegvari
body: Same problem...


author: Horinius
body: Me too, I've just started to try SourceTree and bumped into this error! If I'm a total newbie, I'd turn away from SourceTree and/or Bitbucket as there's no way to know which one is the real culprit.


Tags: bitbucket-cloud

cloud

mercurial
Can I customize this font?
Asked by Marson Mao:

sourcetree_commit_view_2.png

The font of commit messages in this window.

I feel like to use fixed width font for this message, like it did here:

(it's using Consolas, customized in the option)

(if with fixed width font then the "mod", "add"...etc. strings could be aligned)

sourcetree_commit_view.png

Will this be a future feature?

Thanks!  
[](https://community.atlassian.com/t5/Sourcetree-questions/Can-I-customize-this-font/qaq-p/311935?attachment-id=6300){#link_116aa1d679d930}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/9512/1/sourcetree_commit_view_2.png){#display_116aa1d679d930_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/Can-I-customize-this-font/qaq-p/311935?attachment-id=6301){#link_116aa1d679d930_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/9512/2/sourcetree_commit_view.png){#display_116aa1d679d930_2}


Answers:
author: Seth
body: This is not a current feature. Feature requests can be made at jira.atlassian.com

If you create a feature request, post a link here so people who like your idea can find it and vote on it.

comments: author: Marson Mao
body: Okay, thanks for that link :D
what's the difference between remove and delete in sourcetree?
Asked by Brian Wohlin:


Answers:
author: Alejo Villarrubia [Adaptavist]
body: I can't see that view in Source Tree for Mac, but I guess "Delete" removes the selected repositories while "Remove" deletes the selected files (at least that's what Remove does in the Mac application).

comments: author: Seth
body: This is correct.


author: Johannes Kilian
body: Remove removes the file from repository - but not completly. (as @Norman Abramovitz wrote). It removes the file from the sandbox and mark it as deleted for the repository. You have to push the deletion to the repository - from this point of time the deleted file is not part of the repository anymore.Until this point of time the file is still part of the repository. (Remove is a git operation on the repository)

Delete removes the repository from the bookmark list - (Delete is a Sourcetree operation to organize the repositories). You can either simple delete the repository from the bookmark - or you can additionaly delete the complete repository folder from your harddisk as well ...)


author: Norman Abramovitz
body: The delete removes the highlighted respository.

comments: author: Brian Wohlin
body: Right. Delete removes the local repository. Then what does remove do?


author: Norman Abramovitz
body: removes files/directories from the repository completely


author: Brian Wohlin
body: SourceTree.jpg  
[](https://community.atlassian.com/t5/Sourcetree-questions/what-s-the-difference-between-remove-and-delete-in-sourcetree/qaq-p/267523?attachment-id=11110){#link_116aa1ffc2aa93}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/8441/1/SourceTree.jpg){#display_116aa1ffc2aa93_0}


author: Alejo Villarrubia [Adaptavist]
body: do you mean remove and reset? if not that, where can I find the delete option?
Sourcetree becomes "no response" when viewing large commit
Asked by Marson Mao:

When I click a large commit (say with over 1K files), sourcetree takes maybe 5 or 10 minutes, or forever to be able to display it.

I am using the latest version (Windows 1.6.12), and there's no such problem with older version (Windows 1.5.2).

Is this know issue?

Can I do anything to improve my display speed (like tweaking some option, deleting temp files)?


Answers:
author: minnsey
body: Hi Marson

Please see the SourceTree issue <https://jira.atlassian.com/browse/SRCTREEWIN-2572>

The problem is down to performance issues in the Tree View option of SourceTree. Essentially it does not deal well with large complex file lists and unfortunately it's effects are felt even if you do not select the tree view option.

You could try the latest beta <http://downloads.atlassian.com/software/sourcetree/windows/SourceTreeBetaSetup_1.6.13002.exe>.

This does not fix the problems with the Tree View itself but does decouple it form the other view and stops it interfering when not selected.

Cheers

Mike

comments: author: Marson Mao
body: I'll try this beta version and yes I was just using Flat list (multi column)


author: Marson Mao
body: Ok, the beta version works perfectly. Do you know when it would be released? Thanks.
Sourcetree keeps losing my bookmarks
Asked by kjgregory:

For quite some time now, my bookmarks have been set in stone in sourcetree. If I delete bookmarks or add new ones, they seem fine for the duration of the session, but if I close and re-open sourcetree, the deleted bookmarks return and the new bookmarks are lost. This does not affect any of the underlying repositories, but I find it to be very annoying.


Answers:
author: Bal?zs Szakm?ry
body: Check if the folders used by SourceTree are writable by the user running the program. What you describe above indicates that SourceTree cannot save the bookmarks to disk.

comments: author: kjgregory
body: I assume that is the folder where sourcetree is installed or one of the subfolders. In that case then no, the user does not have permission to write to that folder. Can I tell it to save the bookmarks somewhere else or how can I resolve this?


author: Bal?zs Szakm?ry
body: I think the only thing you can do is to install it to another place where it will be able to modify the files.


author: kjgregory
body: I uninstalled sourcetree and re-installed it to a new location, but it still has the same bookmarks and the problem persists. Where are these bookmarks stored?


author: Bal?zs Szakm?ry
body: There is a folder with stuff at c:\\Users\\\<user\>\\AppData\\Local\\Atlassian . Probably somewhere here.


author: kjgregory
body: So guess there is no way to change which directory it uses?


author: Bal?zs Szakm?ry
body: Not sure, there might be a registry key for this... (I do not work for Atlassian, just use the software.)


author: EnriqueL
body: Well...I deleted the c:\\Users\\\<user\>\\AppData\\Local\\Atlassian\\SourceTree folder, reinstalled...and it worked! :) just letting you know. The bookmarks issue was gone afterwards.


author: EnriqueL
body: This was in version 1.6.13.0 by the way


author: Irfan A Shaikh
body: Balazs Szakmary Thank. After changing the permission on Atlassian the issue is resolved.


author: Feby Felix Mathew
body: I had the same issue. it worked after changing the Readonly access in the folders where sourcetree was installed as well as in the local data.


Tags: bookmark
Can I switch back and forth between Source Tree and the terminal when Im fetching, merging, branching etc.?
Asked by Russell Mckee:

I enjoy using source tree but sometime when Im using it I like to do some commands (like merge, creating branched) from the terminal. Can doing this cause me any problems whatsoever? Thank you!


Answers:
author: Johannes Kilian
body: See [here](https://answers.atlassian.com/questions/319780) for experiences using git-GUIs/git commandline in parallel. My experience says, that there shouldn't occur any problems (at least I hadn't any yet). The only annoyance might be, that GUI-Tools might need some refresh after performing some git actions outside the GUI


author: Bal?zs Szakm?ry
body: You can do this safely. whenever one of them is changing something, it creates a lock that prevents the other one from changing things.
Setting up custom merge tool in SourceTree - Code compare
Asked by Robert Sirre:

I'm trying to setup Devart Code compare as the merge tool.

The documentation of Devart Code compare states that it required the following:

```
/TF="path to remote" /MF="path to local" /BF="path to base" /RF="path to merged"
```

When I translate this to the argument to be entered in Sourcetree, whtis would be:

```
/TF="$REMOTE" /MF="$LOCAL" /BF="$BASE" /RF="$MERGED"
```

However, when I that what is actually being executed, I see that the command line is (I'm trying to merge my Gitignore file):

```
"c:\Program Files\Devart\Code Compare\CodeMerge.exe" "C:/Program Files (x86)/Git/TF=./.gitignore.REMOTE.1120.gitignore" "C:/Program Files (x86)/Git/MF=./.gitignore.LOCAL.1120.gitignore" "C:/Program Files (x86)/Git/BF=./.gitignore.BASE.1120.gitignore" "C:/Program Files (x86)/Git/RF=.gitignore"
```

The backslahes seem to have been replaced with the paths to Git. When I try to escape the backslag with another backslash, I get:

```
"c:\Program Files\Devart\Code Compare\CodeMerge.exe" "//TF=./.gitignore.REMOTE.1120.gitignore" //MF=./.gitignore.LOCAL.1120.gitignore //BF=./.gitignore.BASE.1120.gitignore //RF=.gitignore"
```

which doesn't work either.

Is there anything I can do to correct the argument that needs to be passed as forward slash?


Answers:
author: Jakub Pierzcha?a
body: Hi Robert

This setting will work:

Diff command: C:\\Program Files\\Devart\\Code Compare\\Codemerge.exe

Arguments: -MF=\\"$LOCAL\\" -TF=\\"$REMOTE\\" -BF=\\"$BASE\\" -RF=\\"$MERGED\\"


author: Robert Sirre
body: Hi Seth, thanks for your response. I tried that already too, but no luck so far.


author: Seth
body: Try using the other type of slash to escape:

\\/TF=...


Tags: merge
Extension based merge tool
Asked by Matt N:

Hi There,

Is it possible to have a specific file extension handled by a different merge tool? e.g. \*.txt opens in default, \*.mycustomfile opens in another application?

Thanks in advanace


Answers:
author: Sandeep Anand
body: Balazs,

can you please throw some more light on your suggestion. We use sourcetree as the frontend to our git setup. And, we are using kdiff3 as default merge tool.

We want to use a third party merge tool for the .xml files only. I am not able to figure out how to configure sourcetree about it. But it looks you are right that sourcetree does not provide any such feature. Can you please guide more about that script think you have mentioned about.

Best Regards

Sandeep Anand


author: Bal?zs Szakm?ry
body: This is not easily possible with SourceTree, since you can only have one merge tool.

Workaround: write a script that takes three arguments, tests for the file extension and then opens the right merge program and passes the arguments. If you then specify this as a merge tool in SourceTree, it should work as you want it.


Tags: app

merge
Equivalent to svn's "revert changes from this revision" on single file
Asked by James Ford:

Your version control history situation:

* Commit 1 : changed misc stuff
* Commit 2 : changed foo.cs and bar.cs
* Commit 3 : change misc stuff
* Commit 4 : changed foo.cs

Your goal is to undo the changes to file foo.cs done at commit 2.

*** ** * ** ***

In (tortoise) svn this would be done like so...

* Right click foo.cs, choose Show Log
* Log Browser window appears showing commit history filtered to only contain commits which modified the file foo.cs (aside: SourceTree also lakes a convenient way to show a sequential log of changes which affect a path within a repo).
* Selecting commit 2 shows all files changed in the lower window
* Right clicking on foo.cs in the bottom window shows context option 'revert changes from this revision'.

Note that this is distinctly different from right clicking on the entire commit within the upper window and choosing the same option 'revert changes from this revision' as one will revert all files and the other only the currently selected files.

*** ** * ** ***

SourceTree / Git appears to call this similar feature a 'reverse commit'.

However it only shows this as a context menu option for COMMITS. What I want is the ability to reverse commit the currently selected file(s) in the lower window (when a commit is selected in the upper window).


Answers:
author: James Ford
body: Thanks, that appears to be designed to do what I want. Although it actually showed me a dialog box saying it failed for unknown reasons in this particular case... I just manually deleted the method I had added.. really it was just adding a single new method, it shouldn't have been any sort of conflict to revert it, and even if it was it should have allowed me to resolve it as a conflict and not just done nothing...


author: Seth
body: In the diff panel when viewing the commit, you can reverse individual hunks from files, or hit the "..." in the upper right of the diff panel to reverse all changes in a file.
Why does Source Tree Pull fetch twice?
Asked by Carson Lee:

Why does 'Pull' perform a 'git fetch' followed by a 'git pull', instead of a 'git fetch' followed by 'git merge/rebase', or just 'git pull' without a redundant first fetch (since 'git pull' is just a short cut for fetch+merge..)?

It seems that requiring two round trips to the server instead of just one would be worse for performance, so is there something additional that the initial 'git fetch' accomplishes?


Answers:
author: Seth
body: I believe that if you hit "Pull", but there are new commits that your local repository isn't yet aware of, SourceTree uses the first fetch to notice this, then halt the operation. I assume it's an extra mistake-prevention feature beyond the default git behavior, so you don't end up merging/rebasing commits that you didn't know existed.

The second fetch is still pointless, so you might consider submitting a feature request at jira.atlassian.com to see if they would consider modifying the button to do a fetch and merge/rebase instead of fetch and pull.
SourceTree Amend Commit question
Asked by Alexander Kucheryuk:

Hi!

I am using Source Tree on Windows and trying to undo some of the changes to the file (php file).

I select the commit and right click on it choosing "Rebase children..."

A window is shown for interactive rebase.

I check "Amend Commit?" tick box and click OK.

A progress bar is shown and then nothing happens.

Am I doing something wrong?

Because according to some of the information I have seen, a new window should appear where I can modify commit (not the message, actual files).

Alex.


Answers:
author: ?????? ??????
body: I just added custom action with \`git reset --soft HEAD\~1\` and it worked like the same "Undo" in GitHub for Mac.


author: Seth
body: Seems like you are doing this a very complicated way. Right-click the commit you want to undo, and click "Reverse commit..."

comments: author: Alexander Kucheryuk
body: This is a composite commit (contains many other changes). I need to undo only specific changes.


author: Seth
body: Very similar (newer) question here: <https://answers.atlassian.com/questions/12163971/answers/12163991>


author: Alexander Kucheryuk
body: So I do as described in that thread. I get "uncommited changes". I create new commit with option "amend last commit". I get the following error:git -c diff.mnemonicprefix=false -c core.quotepath=false -c "sequence.editor='C:\\Program Files (x86)\\Atlassian\\SourceTree\\stree_gri'" -c "core.editor='C:\\Program Files (x86)\\Atlassian\\SourceTree\\stree_gri'" rebase --skipRebasing (2/5)rebase in progress; onto 9cf6b39You are currently rebasing branch 'master' on '9cf6b39'.nothing to commit, working directory cleanThe previous cherry-pick is now empty, possibly due to conflict resolution.If you wish to commit it anyway, use:Otherwise, please use 'git reset'Could not apply 3fadaf05f8b5c697c8c6d7ff69aa846bb7f5eb04... v3.6.6 (braces for if statement)Completed with errors, see above.
Sourcetree automatically pushes changes after pull?
Asked by Ronald Nikkels:

Since one of the latest updates of sourcetree I have the issue that when I commit my changes and the do a pull (with rebase), my changes get pushed automatically. However, according to the the client there is still a push waiting. But in the branch description I already see my changes. And when I try to push my changes, it raises an error (ofcourse, coz my changes are already there), but I have to do so, otherwise sourcetree keeps showing the push request.


Answers:
author: Seth
body: That looks like what I'd expect. Your changes appear to be committed to your local branch ("master"), but the remote branch is one commit behind ("origin/master").You said you get an error when you push. What is that error message?


author: Ronald Nikkels
body: Thanks, your answer taught me to read :)It turns out some other pieces in the repo causes the error and this coincided with an update of sourcetree, sorry for the bother


author: Ronald Nikkels
body: sourcetree.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-automatically-pushes-changes-after-pull/qaq-p/429163?attachment-id=7944){#link_11745e777c9546}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/12905/1/sourcetree.png){#display_11745e777c9546_0}


author: Ronald Nikkels
body: I couldn't do it yesterday, coz i have not enough point to do something here more that 3 times a day :)


author: Seth
body: Can you upload a screenshot of what it looks like after you've done a pull/rebase?


author: Ronald Nikkels
body: Yeah, I also thought of that.So I checked and double checked :)Tnx for the quick reply though.It's kind of annoying not blocking or anything


author: Bal?zs Szakm?ry
body: That was the only semi-reasonable explanation I had in mind...


author: Ronald Nikkels
body: No, I don't, deliberately, coz I always do a rebase when pulling and that can cause confilcts.


author: Bal?zs Szakm?ry
body: Do you maybe have the "Push changes automatically..." option on in the commit dialog?