What trunk version the branch was derived from?

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

Moderator: SourceGear

Post Reply
talamar
Posts: 19
Joined: Tue Sep 12, 2006 3:12 pm

What trunk version the branch was derived from?

Post by talamar » Wed Jun 11, 2008 7:35 am

Does an easy way exist to find out what point in trunk history was the starting point of a particular branch (what was the point from which the branch was derived)?

Assume, that branch folder name does not carry the necessary information.
I cannot find any reference to the point in trunk history, from where the branch was derived and in branch history too.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Jun 11, 2008 12:56 pm

When you branch an item, its version number increases by 1 in the branch. If a file in your branch has a version number of 5, that means that file was at version 4 when you branched.

When you branch, you might want to add labels or comments as well.

talamar
Posts: 19
Joined: Tue Sep 12, 2006 3:12 pm

Post by talamar » Wed Jun 11, 2008 2:19 pm

Internal version numbers ... yes, you're right. I missed it. Thank you. :)

andrews
Posts: 55
Joined: Tue Feb 05, 2008 7:40 pm

Re: What trunk version the branch was derived from?

Post by andrews » Wed Jun 11, 2008 5:47 pm

talamar wrote:I cannot find any reference to the point in trunk history, from where the branch was derived and in branch history too.
Would it be possible to display in the trunk's history ("trunk" being the folder that the branch was created from) a record showing where branches were created? Even better, if the system created a label against the trunk at this point, as then all the "compare labels" functionality would be available.

A related question - when you sync a branch against the trunk Vault doesn't seem to record it. Would that be possible to do, even if its again just another system-generated label?

Lastly, it'd be _really_ nice if Vault could support labels that floated with the Tip :)

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Tue Jun 17, 2008 3:34 pm

I entered a request on what to show in history.
Lastly, it'd be _really_ nice if Vault could support labels that floated with the Tip
I'm not sure I understand what you mean here though. Could you elaborate?

andrews
Posts: 55
Joined: Tue Feb 05, 2008 7:40 pm

Post by andrews » Tue Jun 17, 2008 4:54 pm

"Floating" labels are always associated with the newest revision of the branch to which they is applied, rather than being anchored to one particular revision. If you applied a floating label to a trunk revision, then that floating label would move whenever a new revision is added so that it always points to the newest trunk revision. If a floating label is applied to a branch, then it will always point to the tip revision on that branch.

When you created a new Label you'd have a checkbox on the dialog saying whether it should float or not. Ideally there'd be a means of accessing the properties of a floating label later on to make it "fixed".

With our old system (PVCS) we commonly used floating labels for automated scripts that created the overnight build. There's workarounds for it of course, but it'd be nice to have. Quite a few other VCS's have floating labels as well - not that that should influence your decision on whether they should be added to Vault :)

While on the topic of labels, when we're getting close to a major build (for handover to the testing group for instance), we used to be able to put a label on the code & then advance it to include new changes as they're added until we're happy that the build is ok. That way we can always extract the latest version of the code for the major build, which may or may not include all Tip changes, by getting the label.

I know that Vault has "Label Promotion", but this works at an individual file level. From what I've been able to discover, there's no way of advancing a label to include new changesets, which I think would be more useful (for our purposes anyway). If there's a way of doing it then I'd be very happy to find out :)

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Jul 02, 2008 9:11 am

I've added both suggestion to our list of requests.
F: 13546, 13545
On the first one though, to get the latest code, one only has to perform a Get on a parent folder. Does that not accomplish what you are looking for?

On promoting a changeset, I'm assuming you mean that whatever versions of the files that changeset created are the file versions that should get promoted then. If that's not what you mean, just let me know.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Jul 02, 2008 10:20 am

Also, on the changeset promotion request....have you considered deleting your label and then reapplying it at that changeset version? Give that a try and see if it gets you what you want.

andrews
Posts: 55
Joined: Tue Feb 05, 2008 7:40 pm

Post by andrews » Mon Jul 07, 2008 9:41 pm

Sorry Beth, I didn't noticed your replies. Yes, your summary of my request re changesets & promotion is correct. Deleting & re-creating the label ad that changeset version won't work if other changesets have been committed since the label's initial creation that I _don't_ want the label to include.

I think this has been described in more detail in some other threads recently...

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

Post by lbauer » Mon Jul 21, 2008 10:53 am

thanks.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply