Branch folder creates strange subfolders? In Vault 2.0.4

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

Moderator: SourceGear

Post Reply
bpd
Posts: 28
Joined: Tue Jul 13, 2004 2:02 am

Branch folder creates strange subfolders? In Vault 2.0.4

Post by bpd » Mon Aug 02, 2004 10:04 am

Dont know if previous versions did it or not as I have only just used this feature.

We store our data in Vault like this ;

Root
Product
Version
(i.e.)
$CompanyA
\\\\$CoolSoft
\\\\\\\\\$1.0
\\\\\\\\\\$1.1
\\\\\\\\\\\\\\$Classes
\\\\\\\\\\\\\\$Gfx
\\\\\\\\\\\\\\$Forms
$CompanyB
\\\\$OtherSoft
\\\\\\\\\\\$0.9 etc etc

When we roll out a new version we like to create a new folder with the next releases intended version number on level 4 of the tree for everyone to work on - it seemes to me that Branch might be the easiest way to achieve that?

So I tried it, I clicked the $CoolSoft 1.1 and asked it to create a branch called 1.2 I ended up with something like this...
$CompanyA
\\\\$CoolSoft
\\\\\\\\\$1.0
\\\\\\\\\$1.1
\\\\\\\\\\\\\\\$Classes
\\\\\\\\\\\\\\\$Gfx
\\\\\\\\\\\\\\\$Forms
\\\\\\\\\$1.2
\\\\\\\\\\\\\\\$CoolSoft
\\\\\\\\\\\\\\\$Project
\\\\\\\\\\\\\\\$Classes
\\\\\\\\\\\\\\\$Gfx
\\\\\\\\\\\\\\\$Forms
$CompanyB
\\\\\\\\\\\\\\\$OtherSoft
\\\\\\\\\$0.9 etc etc


Quite where these extra folders came from I have no idea? But despite the fact that none of my developers had these folders on their drives these folders contained copies of the files in their parent and showed them as being checked out?

I had to get my team to create pretend folders that matched the same names, fill them with files and check them in just so I could delete the new folders?

Any help with this weird issue appreciated
Last edited by bpd on Mon Aug 02, 2004 10:08 am, edited 1 time in total.

bpd
Posts: 28
Joined: Tue Jul 13, 2004 2:02 am

Forum text editor shocker

Post by bpd » Mon Aug 02, 2004 10:06 am

The forum text parser has destroyed all my nice formatting. sorry it was nicely laid out with indents

sterwill
Posts: 256
Joined: Thu Nov 06, 2003 10:01 am
Location: SourceGear

Post by sterwill » Mon Aug 02, 2004 1:25 pm

You can enclose your pre-formatted text in [code] and [/code] blocks, to preserve the spacing.
Shaw Terwilliger
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Tue Aug 03, 2004 8:26 am

Just so I know exactly what you're asking:

You had a folder at the path $/Coolsoft/1.1. You right-clicked the 1.1 folder and chose branch. You typed 1.2.1 as the name of the branch, and chose to put the branch in $/Coolsoft. After the branch, two new folders appeared in $/Coolsoft/1.2.1. Those new folders are Coolsoft and Projects. Is this correct?

bpd
Posts: 28
Joined: Tue Jul 13, 2004 2:02 am

Yes

Post by bpd » Tue Aug 03, 2004 8:57 am

Yes thats correct sorry for the formatting screw up

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Tue Aug 03, 2004 9:14 am

That shouldn't be happening. At least I can't think of anything in Vault that would cause that to happen. Do you get any hints as to what happened if you look at the history of the 1.2.1 folder or the histories of the strange folders?

bpd
Posts: 28
Joined: Tue Jul 13, 2004 2:02 am

Post by bpd » Wed Aug 04, 2004 2:19 pm

The strange folders arent there any more as I have now deleted them, but this has happened on 2 occasions that I have used the Folder Merge feature.

As for the history of the 'source' folder, nothing in it really

I wil see if I can reproduce the issue...

bpd
Posts: 28
Joined: Tue Jul 13, 2004 2:02 am

Couldnt reproduce it that time

Post by bpd » Thu Aug 05, 2004 3:59 am

I just gave it a try (as we have just released another major version)

Seemed to work ok this time, despite the fact that one developer had a file checked out, which is what caused it to have a problem part way through the last time.

The last time it started the branch process and stopped with a message stating that files were checked out so it could not continue, I believe it was then that problem had occured - but I may be wrong (busy day)

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Thu Aug 05, 2004 7:17 am

You should be able to branch a folder when files underneath it are checked out. Some commands won't allow you to continue if there are files checked out (pin, rename, delete), but branch should work fine.

You mentioned the folder merge command. If you invoked Merge Branches instead of Branch, then I believe it would warn you about checked out files somewhere along the way, and also if you chose a folder one level higher than your branch point, it would create the parent folders in the destination folder (because it is trying to bring changes from the origin folder to the destination folder, which would include the extra folders). Is it possible that is what happened?

bpd
Posts: 28
Joined: Tue Jul 13, 2004 2:02 am

Possible

Post by bpd » Fri Aug 06, 2004 1:56 am

Sadly not really as I was only using the right click menu, which doesnt have a Merge Branches option on it?

Im starting to suspect the folders have been created by developers (well actually by VB) when they bind to the new source code folder which is now created, when first SC binding VB always asks where in sourcesafe to add files etc and defaults to creating a subfolder which is the name of the project, which is at least one of the folders that appeared for me (the name of the VBP).

bpd
Posts: 28
Joined: Tue Jul 13, 2004 2:02 am

Best practices

Post by bpd » Fri Aug 06, 2004 2:06 am

Before I go... ;)

Is using the Branch folder tool in this way a good practice? i.e using it to denote major release's to kick off a new source code subfolder as illustrated in my first post.

I never have any intentions of merging them back together so Im not sure Im using Vault correctly, it just seemed like a nice way to achieve the effect I was after (new sub folder with new version number, history retained)

Whats the best practice if this is wrong? Cheers

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Re: Best practices

Post by dan » Fri Aug 06, 2004 7:42 am

bpd wrote: Is using the Branch folder tool in this way a good practice? i.e using it to denote major release's to kick off a new source code subfolder as illustrated in my first post.
Yes, that's a great use for Branch. We do the same thing here. We do use Merge Branches to merge minor release changes back into the main source trunk, but you don't have to use Merge Branches to make use of Branch.

Post Reply