youngmon/atlassian-qna huggingface dataset:
[Feature Request] Improve the graph layout
Asked by Jon Hart:

The graph in MacHG is much prettier than sourcetree's.

It is curvy - lines are easier to follow.

Colors are higher contrast - lines are easier to follow.

Commit nodes are the same color as the line, except for merges - makes it easier to pick out commits that are interesting in the tree.

The tree is not always 'compact' - branches change direction (column) much less frequently, so they are easier to follow.


Answers:
author: stevestreeting
body: I completely disagree, sorry. SourceTree v1.0 had curvy lines very much like MacHG and I had loads of requests to change it to look more like GitX. I resisted for a while but once I changed it, it was much easier to follow. When you have large numbers of branches switching lanes a lot, the curves get very muddled compared to the angled lines.
[Feature Request] Smarter push/pull dialog, like MacHG
Asked by Jon Hart:

Before sourcetree I was using machg. The feature I miss most is the 'smart' push/pull dialog. MacHg would detect which repos in your 'bookmarks' were related to the one you were operating on and make those available in the push/pull dropdown.

In the context of git it would be nice if sourcetree would automatically add and remove remotes as you manage bookmark entries, plus expose a way to do it manually.

When choosing a custom repo the text input field is not big enough, kiln urls are all much longer than the space provided, so it isnt easy to see what the custom repo is.

Make the custom field the full width of the dialog.

Make the push/pull dialog resizeable.

Perhaps an option to add custom repos to the remote repos?

Only select the current branch by default (GIT) when pushing.

Remember custom repo urls and default to the last repo used.

Remember the state of the advanced section for hg pull.

Remember the branch selected for hg push.

HG pull does not correctly choose the right revision if the revision input field is not defocused before clicking ok.

The branch drop down in HG Pull does not limit the pull to only that branch, it is not clear how it relates to hg. Putting the branch name in the revision text field works (as long as it is defocused).


Answers:
author: stevestreeting
body: Honestly, I don't like the approach of auto-detecting related local repositories, I think it makes the list overly cluttered by default. I have many cases where I have multiple clones in different locations (usually for different branches or forks), and I like to keep my remotes lists clean, showing only the items I specifically want to show up in each one. For example I don't want to accidentally be able to select the real upstream or a local clone when I'm working on an experimental fork, that would be disastrous. It's very easy to add remotes to your list in Settings, and being explicit is, IMO, better.

The 'Custom' option is really only there for one-off pushes / pulls. If you use the same one more than once, you should add it to your remotes in Settings.

The pull/push dialogs will be getting some improvements in future, particularly in Mercurial. I'd like to display the full detail of the incoming changes for example instead of just the hg incoming output. The issues you mention here with formatting will be addressed then.
> HG pull does not correctly choose the right revision if the revision input field is not defocused before clicking ok.

I'll fix that.
> The branch drop down in HG Pull does not limit the pull to only that branch, it is not clear how it relates to hg. Putting the branch name in the revision text field works (as long as it is defocused).

This simply adds the "-b branch" option to "hg pull" and behaves exactly as documented there.

<br />
Three way merge when changing branches in git?
Asked by Jon Hart:

I got really used to being able to changes branches at will in hg. Now that Im in git I often find myself blocked from changing branches by conflicts with work space modifications. Does sourcetree have an option to do '-m' when checking out?


Answers:
author: stevestreeting
body: Not right now, your best bet is to stash your changes for the moment. But I'll add this to my list.
Source tree corrupts git index file on smb share
Asked by Jon Hart:

Im using repos that are hosted on a windows server to ease deployment of code for testing with end users.  
Previously the repos were hg, and I used source tree to view and update them. Sourcetree was able to access the repos by mounting them as a local disk. This was slow but worked fine for a year.  
Recently we migrated to github and the repos on the server are now git. After a short period of time, perhaps 20 minutes, after cloning the index file in the repo will become corrupt. I can delete the file and reset the repo, but it will become corrupt again shortly.  
I have removed the shared repos from source tree and Ive been using command line git to operate on the repos (using the same mounted network drive) without problems.

Sourcetree's version of git is that same as my system version, 1.7.5.4. Im guessing that something unhappy is going on with 'refresh automatically on file change'. I have disabled it and so far the corruption hasn't happened again. Perhaps you could make the auto refresh configurable per repo?


Answers:
author: stevestreeting
body: What happens with the auto-refresh is that the kernel file events notify SourceTree of a file change, and it calls 'git status'. SourceTree does not modify anything other than via git itself, and git status et al are read-only commands anyway in theory.

It's possible that parallel calls to 'git status' cause corruption on an SMB share, perhaps because the locking git usually uses doesn't work via that method - you wouldn't see this on the command line because every command operates strictly in serial unless you have more than one console open at a time. SourceTree allows parallel calls to populate different views because it's faster, and has never caused any issues previously.

The auto-refresh already is configurable per repository, see the 'Settings' option in the repo window and the 'Automaticall refresh' option in the Misc settings at the bottom. However I don't think it's this - it may just be that having the auto-refresh enabled just triggers it faster. I bet the underlying cause is that SMB shares are just not safe to use with git - there are other reports of SMB corruptions such as this: <http://stackoverflow.com/questions/2446755/share-pre-initialized-git-repository>

My advice would be not to do this. You'd be far better to keep your repositories on your local drive and push to an SMB remote if you need to.

comments: author: Michael Joyce
body: Six years later, and this exact problem just hit me. Incredible.

In my case, I've got a VM with my development environment. The source code is checked out from GitHub and then mounted via Samba from an Ubuntu guest to Mac host.

A few minutes of poking around the repo with Source Tree and the index.lock file gets corrupted and I have to remove it and reset the repo.

Seems to be a Source Tree-specific issue. I can cd to the mounted directory in the host and use git commands without problem.
[Feature Request] add integration for deltawalker
Asked by Jon Hart:

For diffs and file merge.


Answers:
author: Dieter Blomme
body: Thanks!


author: rverschoor
body: I've created Feature Request [](https://jira.atlassian.com/browse/SRCTREE-2046)<https://jira.atlassian.com/browse/SRCTREE-2046>for you


author: Dieter Blomme
body: Would also love this


author: stevestreeting
body: I've tried to do this before, but found DeltaWalker to be extremely unreliable, such that I did not want to officially support it. It often failed to save merged output when it said it did, for example. You can hook it up manually if you like using the 'Custom' option but unless it's substantially improved since I last used it (January), I don't want to include it in the official list.

comments: author: Jochen H?berle
body: Steve, there is some time gone.. Delta Walker now looks rather promising - and I have a license for it ;-)

Would you mind sharing at least the settings to make this work as "Other" for external Diff and Merge tool?

Thx
how do i checkout previous version of text file in sourcetree?
Asked by jordan miller:

I have a plain text file, I want to open a version from a previous commit. How do I get SourceTree to do it's magic opening the previous version by putting it in /var/ and renaming it with the commit SHA1?

It will do this for binary files, but I can't figure out how to do this for text files.

Help!


Answers:
author: stevestreeting
body: You can checkout a file from a previous version by right-clicking on it in either the log view or the single-file log view and selecting 'Reset to this commit', but that will overwrite the version in your working directory.

To view the file \*temporarily\* without altering your working directory, just press Space (or right-click and select Quick Look) to quickly view any file using Quick Look - this even works on historical file state. If you then want to open the file in the native editor (still in the temporary area), click the 'Open with \<app\>' in the top-right of the Quick Look window, or double-click anywhere in the Quick Look window area.
Multiple instances of P4Merge
Asked by Steven Pavett:

I'm using SourceTree with P4Merge. Everytime I click external diff it launches a separate P4Merge process. Is this deliberate? Not a huge issue just I end up having to close lots of P4Merge processes after checking a diffs for a checkin


Answers:
author: Steven Pavett
body: Appears I wasn't 100% right.

P4Merge.app contains both

p4merge.app/Contents/Resources/launchp4merge

and

p4merge.app/Contents/MacOS/p4merge

and both can be called directly without needing to be wrapped in a shell script i.e. in SourceTree you can set Diff Tool to Other and put in the values :

Diff command:p4merge.app/Contents/Resources/launchp4merge Arguements:"$LOCAL" "$REMOTE"

And this works fine for committed files - it will diff them in the single p4merge process but it fails when diffing uncommited changes. If p4merge isn't loaded it will load it but no window appears. Strange


author: Steven Pavett
body: Hi Steve - thanks for your reply.

This works for me (now all diff windows open in a single p4merge process):

create /usr/local/bin/launchp4merge.sh with content

***#!/bin/sh***

***/Applications/p4merge.app/Contents/Resources/launchp4merge $\****

and make this executable

***chmod +x /usr/local/bin/launcp4merge.sh***

then in SourceTree go to preferences -\> diff and switch Visual Diff Tool and Merge Tool to Other and put in the values

***Diff Command: /usr/local/bin/launchp4merge.sh Arguements:"$LOCAL" "$REMOTE"***

***Merge Command: /usr/local/bin/launchp4merge.sh Arguements:"$BASE" "$LOCAL" "$REMOTE" "$MERGED"***

comments: author: stevestreeting
body: Thanks - unfortunately calling 'launchp4merge' directly doesn't work, you do have to do it via a wrapper shell script which hard-codes the path, which is tricky when you don't always know where p4merge will have been installed. I'll see if I can find a nice way to make this work in future!


author: stevestreeting
body: Tracking this here: [SRCTREE-735](https://jira.atlassian.com/browse/SRCTREE-735)


author: Steven Pavett
body: Appears I wasn't 100% right.

P4Merge.app contains both

p4merge.app/Contents/Resources/launchp4merge

and

p4merge.app/Contents/MacOS/p4merge

and both can be called directly without needing to be wrapped in a shell script i.e. in SourceTree you can set Diff Tool to Other and put in the values :

Diff command:/Applications/p4merge.app/Contents/Resources/launchp4merge Arguements:"$LOCAL" "$REMOTE"

And this works fine for committed files - it will diff them in the single p4merge process but it fails when diffing uncommited changes. If p4merge isn't loaded it will load it but no window appears. Strange


author: stevestreeting
body: This just appears to be a limitation of P4Merge as far as I can tell - SourceTree simply sets it up as a diff/merge tool for git \& hg in the normal way, and I haven't seen any other way of doing it. Other tools don't behave like this!

If you find something in the config (.hgrc / .gitconfig) that can be done to change this behaviour, please let me know, but as far as I can tell the setup is correct.
Captcha
Asked by Bradley Bayliss:

Hi there,

Is there a problem using Captacha when inviting new users?

None of the answers are correct when we are dead certain and it just keeps going on and on?

Many Thnaks,

Brad


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

This can happen when a user gets it wrong too often too quickly - like five tries inside a minute or two. Once it's tripped over the limit, it carries on offering the Captcha, but ignores further inputs, just giving you another one.

It's not ideal for humans, as we don't get told we've got it wrong too often, but it wastes a lot of spam-bot time, reducing their time to attack other accounts.


Tags: cloud

confluence-cloud
How to display Project name and another custom field value from jira request on Team calendar
Asked by Prashantha Kumari:

Hello,

I have created confluence page and added Team calendar. Added Event with Event type "JIRA Issue Dates". But it shows only Jira ticket number , Summary and due date on calendar. I want to display Project name , Release name and due date on calendar. Any suggestion on this ? how can i update these jira custom field value on team calendar on confluence

Thanks,


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Prashantha Kumari](/t5/user/viewprofilepage/user-id/5102499) and welcome to the community,

If you mean that you want to add more custom fields in this display:

![calendar teams confluence.png](https://community.atlassian.com/t5/image/serverpage/image-id/255437i2828B779BCE90B51/image-size/large?v=v2&px=999 "calendar teams confluence.png")

Then unfortunately you can't. If you want to distinguish among projects, sprints etc, you can create different events based on JQL and give them another color.

comments: author: Prashantha Kumari
body: Thanks Alex for your response.

You mean we need to create custom event type ?

We want to show project name and release name on team calendar. With Event type "JIRA Project Releases" we can displayed project name and releases. Here we created release version for each project. But now we are trying for one jira project, where we added one custom field for entering project names and another field for release names. These custom field we want to display on team calendar on confluence.

Thanks,


Tags: cloud

confluence-cloud

team-calendars-for-confluence
How to fix a table with export PDF ?
Asked by J?r?my Callejon:

Hi Atlassian Community,

I tried to export a Confluence page to a PDF document, but tables are cut.

Screenshots will help :

![2023-05-04_13h36_14.png](/t5/image/serverpage/image-id/255257i9B1FE5B98BC14E8B/image-size/large?v=v2&px=999 "2023-05-04_13h36_14.png")

Please, could you tell me how to fix this ?

I tried to add some CSS rules on the style sheets of PDF export, but I can't find how to fix this.

Thank you very much,

J?r?my


Answers:
author: Dan Breyen
body: Hi [@J?r?my Callejon](/t5/user/viewprofilepage/user-id/5211349) welcome! It appears this is a known issue [CONFCLOUD-75799](https://jira.atlassian.com/browse/CONFCLOUD-75799) and [CONFCLOUD-75795](https://jira.atlassian.com/browse/CONFCLOUD-75795) in Jira for Confluence in the cloud. Looks like they're working on some other export issues. I'd suggest taking a look at those, and if it applies, you can vote for and watch them.

If that's not it, I would open a ticket with support so it can be reviewed by support at support.atlassian.com

comments: author: J?r?my Callejon
body: Ho [@Dan Breyen](/t5/user/viewprofilepage/user-id/5086375) , I tried the solution [CONFCLOUD-75799](https://jira.atlassian.com/browse/CONFCLOUD-75799) and it works !

Thank you for your help.


author: Mike Rink -drawio Diagrams-
body: You may be sticking with native solutions, which I completely respect, but I have found K15t's Scroll PDF Exporter app to be a very good tool. Its formatting is better (avoiding scenarios like your table issue), but there are other benefits as well; it adds a lot of helpful functionality to the PDF export process, making it easily worth the cost


Tags: cloud

confluence-cloud
How do smart links work
Asked by Arnd Layer:

I like the smart links functionality in the Atlassian Cloud editors. But I'd like to learn more about how they work.

* Is this proprietary technology or are internet standards used? Are there plans to publish this as an open standard?
* How can 3rd parties provide smart links? What must a web page contain so that links to the page are recognized as smart links? Is There an API?

As you can see, I'd like this to be an open technology that can be used by everyone. AFAIK this seems not to be the case.

[https://community.atlassian.com/t5/Confluence-articles/Smart-Links-a-richer-way-to-hyperlink/ba-p/1412786?utm_source=dm\&utm_medium=unpaid-social\&utm_campaign=P:online\*O:community\*I:social_share\*](https://community.atlassian.com/t5/Confluence-articles/Smart-Links-a-richer-way-to-hyperlink/ba-p/1412786?utm_source=dm&utm_medium=unpaid-social&utm_campaign=P:online*O:community*I:social_share*)


Answers:
author: Ilham
body: Hi

I have a question please on how to enable Smart links in confluence, is it available out of the box on Entreprise versions?

Thanks

comments: author: Stavros_Rougas_EasyApps
body: Smartlinks are created by default when paste in a link to a page on Confluence cloud. You do not need to do anything on the admin level.

But if you do not want them to work by default this is a bit of a challenge. Individual users can disable them so URL is the default. It is not possible to disable them on system admin level for all or groups of users.

I know so much about smartlinks as we created an app to bulk edit links from Smartlink to URL and URL to Smartlink, it's called [Link Editor by Easy Apps](https://marketplace.atlassian.com/apps/1227360/link-editor-by-easy-apps?hosting=cloud&tab=overview).


author: Aron Gombas _Midori_
body: Others will correct me if I am wrong, but it is proprietary.

And it cannot be extended for now. If Atlassian doesn't support a certain type of link, then it won't work as smart link. I'd expect that at some point they will enable developer to build a Forge app that can implement new smart link types.

comments: author: Stavros_Rougas_EasyApps
body: We built [Link Editor by Easy Apps](https://marketplace.atlassian.com/apps/1227360/link-editor-by-easy-apps?hosting=cloud&tab=overview) in Forge.

Almost all links can become smartlinks, clients have found that these two cannot become smartlinks:

* Loom.com
* IMDB.com


Tags: cloud

confluence-cloud

issue-link

link

tag
Getting 404 error for /rest/experimental/
Asked by neetubhatt:

Recently we have moved to 7.13 confluence version and I can see in logs /rest/experimental/relation/touched/from/user/current/to/content/32432432?targetStatus=current delete api being called with 404 response .

It seems like confluence api , do we have to add or change anything in our plugin for the api to work .


Answers:
author: Matt
body: Have a look at the REST API Browser to test and ensure the call is structured correctly.  
<https://marketplace.atlassian.com/apps/1211542/atlassian-rest-api-browser/version-history>  

![Snag_157f8eb4.png](https://community.atlassian.com/t5/image/serverpage/image-id/256976iC22BF63D76720417/image-size/large?v=v2&px=999 "Snag_157f8eb4.png")

Looking at the expected format, there shouldn't be a slash between "to" and the "targetType". So that would change your API URL to:

```
/rest/experimental/relation/touched/from/user/current/tocontent/32432432?targetStatus=current?
```

<br />

If the REST API browser is already installed in your instance you can access it via:  
(ConfluenceBaseURL)/plugins/servlet/restbrowser

More doc on the API:  
<https://docs.atlassian.com/ConfluenceServer/rest/7.13.0/>  

<br />

<br />

comments: author: neetubhatt
body: [@Matt](/t5/user/viewprofilepage/user-id/2006978) : Thanks for the info but this api is not installed on our instance . the error started occurring after we moved to 7.13 version . Is there any workaround or fix for this or its a know issue . The error occurs in any of the scenario on edit page like inserting table or curly braces .


Tags: confluence-server

server
Hide page move
Asked by arno:

???

?????????confluence?????????????????????

![page.png](/t5/image/serverpage/image-id/255253i369E17856D394F11/image-size/large?v=v2&px=999 "page.png")

* ??????????????????


Answers:
author: Sushant Verma
body: Hi [@arno](/t5/user/viewprofilepage/user-id/5102882)   

Welcome to the community!  

As a workaround, we can hide the Move and Copy menus with below Javascript in **General Configuration \> Custom HTML** , and the **end of BODY** section:  

    <script type='text/javascript'> AJS.toInit(function(){  if (! AJS.params.isConfluenceAdmin) {    AJS.$('#action-copy-page-link').hide();    AJS.$('#action-move-page-dialog-link').hide(); }});</script>

The above code hides those menus for all the users except for **Confluence Administrators** .  

The changes will be applied immediately!   

Hope this will help you!  

Regards,  
Sushant Verma


Tags: confluence-server

server
How to get all urls in confluence.
Asked by Michael M:

How to get all urls in confluence.  
Is it possible to get them via the search syntax?  
Please provide a more convenient way


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Michael M](/t5/user/viewprofilepage/user-id/5211287) and welcome to the community,

Out of the box you can't do that. You have to use an app. Please read this post <https://community.atlassian.com/t5/Confluence-questions/Extract-Site-Map-of-a-Space/qaq-p/989001>


Tags: confluence-server

server