subpaths seems to malfunction

I have a repository with a number of subpaths in the .hgsub file. These are used to redirect the repositories from being nested to flat when pushing to hosted services.

I have number of rules under the [subpaths] section of the file such as this:

[subpaths]
http://(.*)/parentRepo/Game = http://\1/parentRepogame

However when I try to commit the parentRepo in sourcetree it seems to recognize these subpath rules as real repositories ( http://(.*)/parentRepo/Game is listed as a sub repository for example) for the sake of committing and will not let me commit parentRepo until the other (non existant) repos have been commited.

Am I using source tree incorrectly or is this a bug?

Regards,

James Mintram

1 answer

1 accepted

This widget could not be displayed.

This is probably technically a bug, but I must admit to not understanding the intention or expected behaviour of a setup like this - SourceTree's support for subrepositories has primarily been designed with linked sub-projects in mind (similar to svn externals etc).

Can you explain the purpose & expected behaviour of your case or point me to some documentation that illustrates it? I don't understand how these subpaths can be non-existent as you refer to them.

Hi Steve,
Here is a link that explains properly what I am doing with sub repos: http://mercurial.selenic.com/wiki/SubrepoRemappingPlan

So on services like Bitbucket that only allow flat repository names such as http://bitbucket.org/user/repository_subrepo and not http://bitbucket.org/user/repository/subrepo I can use the remapping ability in the .hgsub file

I hope that better explains it :)

Is this likely to get fixed?

Regards,

James Mitnram

Thanks for the info - I'm tracking this issue in my work queue here: https://jira.atlassian.com/browse/SRCTREE-954

It'll definitely get fixed; I'll try to get it at least tolerating this setting in a 1.4 point release, the next one if possible (although that's due tomorrow!)

It appears to be a trivial change to tolerate this configuration actually, please can you try this pre-release build and let me know if it solves your issue?

http://downloads.atlassian.com/software/sourcetree/SourceTree_test.zip

Yeah, that appears to work brilliantly! Thanks very much for the quick update to the app :) Regards, James Mintram

Awesome, this will be in the official 1.4.3 update. Thanks for testing.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

864 views 2 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you