Create internally relative links so a branch is comlete?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Mordachai
Posts: 84
Joined: Sun Feb 24, 2013 11:58 am

Create internally relative links so a branch is comlete?

Post by Mordachai » Thu Nov 14, 2013 1:44 pm

I have a trunk - let's call it 15.0

Within that source trunk, I have various shared links - say

15.0\myapp\core\myicon.ico -> 15.0\myapp\resources\English\myicon.ico

where -> is links-to.

If I branch 15.0 to 15.1, I get a copy of everything under 15.0 as 15.1... except that shared links such as the above remain fixed upon 15.0, rather than being relative to the new branch.

i.e. - what I want to end up with is:

15.1\myapp\core\myicon.ico -> 15.1\myapp\resources\English\myicon.ico

...but instead end up with:

15.1\myapp\core\myicon.ico -> 15.0\myapp\resources\English\myicon.ico

So I've got links that cross branches. Undesirable.

Is there a way to say "branch this and force all links to remain relative"

Or alternately, is there a way to create the link as a relative link in the first place?

(Also, any ideas on how to fix up the mess I've got now - with files linked back to 15.0?)

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Create internally relative links so a branch is comlete?

Post by lbauer » Thu Nov 14, 2013 4:24 pm

Is there a way to say "branch this and force all links to remain relative"
All links within a branch should be relative to their share links within the branch. For instance I created this folder called Project 15, added a subfolder, then shared files from the Project 15 folder into the subfolder.

Then I branched Project 15 to Project 15.1.

The shares were relative to Project 15.1.

So . . . I'm not sure why you see a different behavior.

Are any of the shares linked to shares outside of the branch?

Is your database a VSS import that had shares?
Attachments
share in branch.PNG
share in branch.PNG (44.13 KiB) Viewed 5068 times
Linda Bauer
SourceGear
Technical Support Manager

Mordachai
Posts: 84
Joined: Sun Feb 24, 2013 11:58 am

Re: Create internally relative links so a branch is comlete?

Post by Mordachai » Mon Nov 18, 2013 9:10 am

Well, that's good news in that if I fix them now, hopefully they'll stay fixed.

This is a VSS import, yes.

EDIT: D'oh - my bad. I cannot find any links which are not relative to 15.1. I don't know what I saw last week - but I'm going to have to assume I just was looking in the wrong branch (the 15.0 branch) when I saw the links that went to 15.0...

So, all is well. This appears to be a total non-issue (user-error) :}

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Create internally relative links so a branch is comlete?

Post by lbauer » Mon Nov 18, 2013 9:30 am

:) Let me know if we can be of assistance in the future.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply