Renaming Folders Broke Show Labels

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

Moderator: SourceGear

Post Reply
imnlfn
Posts: 10
Joined: Wed Aug 01, 2007 12:40 pm

Renaming Folders Broke Show Labels

Post by imnlfn » Fri Apr 04, 2008 4:04 pm

I'm using Vault 4.1.1 and have the folders for my branches named using major and minor revision numbers. At some point, the people I work for decided I needed to do a release a week, so the number of these folders grew more quickly than I had originally planned and recently I went from ".9" to ".10" to ".11" and so on. After a few weeks with these new two digit folder names appearing at the top of the list in Vault, I decided to rename the earlier projects to ".01", ".02", and so on. That's where my trouble began.

As an aside, one unusual part of the renaming process was I could swear the renaming of the project folders in Vault also renamed the folders on disk that hold the project files. At least when I went to rename those folders, it had already been done, and I couldn't remember having done it.

The real problem I discovered just today, though. If I select "Show Labels", then any of the "Diff" functions, none of them work (at least I haven't found one that does). It seems to have to do with the folder name (from before the rename) stored with each of the labels. I can do a "Get", but it puts the files in a folder with the previous name. However, if I then run a "Diff" against that new folder, I just get a blank "Show Folder Differences" page. You would think in a comparison against an actual folder on disk, it wouldn't matter where the folder was originally.

The most disconcerting thing is to try a "Diff" with the current version in the repository, in which case I get two error messages in succession: "Object reference not set to an instance of an object." and "Cannot start process because a file name has not been provided."

Fortunately, I can do what I need to do right now by performing a "Get" from a given label and comparing that to what's in my renamed working folder, but that's obviously not the preferred way of doing things and wasn't how it was working before the rename.

Thanks in advance for your help,
Matt

imnlfn
Posts: 10
Joined: Wed Aug 01, 2007 12:40 pm

Post by imnlfn » Fri Apr 04, 2008 4:11 pm

My Vault log shows "GetLabelStructure returned: FailObjPathInvalid", if that helps.

Thanks again,
Matt

imnlfn
Posts: 10
Joined: Wed Aug 01, 2007 12:40 pm

Post by imnlfn » Mon Apr 07, 2008 7:27 am

Ah, it would appear I need to promote those labels in order to refresh their folder references. Anyway, that's what I gathered from the Help information on the Promote function.

I'm going to give it a shot and see what happens.

imnlfn
Posts: 10
Joined: Wed Aug 01, 2007 12:40 pm

Post by imnlfn » Mon Apr 07, 2008 7:35 am

Nope, Promotion didn't do it.

Are folder labels and folder renames just totally incompatible?

-Matt

imnlfn
Posts: 10
Joined: Wed Aug 01, 2007 12:40 pm

Post by imnlfn » Tue Apr 08, 2008 7:21 am

Hello? Anyone?

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

Post by lbauer » Tue Apr 08, 2008 3:37 pm

I was able to reproduced the diff failure and I have logged it as bug 13261. Thanks for the report.
I could swear the renaming of the project folders in Vault also renamed the folders on disk that hold the project files. At least when I went to rename those folders, it had already been done, and I couldn't remember having done it.
Yes, we try to synchronize the working folder with the repository folder on renames.
Linda Bauer
SourceGear
Technical Support Manager

imnlfn
Posts: 10
Joined: Wed Aug 01, 2007 12:40 pm

Post by imnlfn » Wed Apr 09, 2008 8:10 am

lbauer wrote:I was able to reproduced the diff failure and I have logged it as a bug. Thanks for the report.
Great, I look forward to it being resolved.
lbauer wrote:
I could swear the renaming of the project folders in Vault also renamed the folders on disk that hold the project files. At least when I went to rename those folders, it had already been done, and I couldn't remember having done it.
Yes, we try to synchronize the working folder with the repository folder on renames.
It's actually quite handy, since I would have renamed the folders anyway, but I just wasn't expecting it to happen.

Thanks,
Matt

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

Post by lbauer » Mon Apr 14, 2008 11:23 pm

Let us know if you have questions in the future.
Linda Bauer
SourceGear
Technical Support Manager

imnlfn
Posts: 10
Joined: Wed Aug 01, 2007 12:40 pm

Post by imnlfn » Tue Apr 15, 2008 9:13 am

lbauer wrote:Let us know if you have questions in the future.
Well, I'm a little curious about what you're doing posting at 1:23 in the morning, but concerning Vault, I'm all set for now. :wink:

Thanks.

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

Post by lbauer » Tue Apr 15, 2008 10:36 am

We're dedicated to our customers. :D
Linda Bauer
SourceGear
Technical Support Manager

Post Reply