Renaming Folders Broke Show Labels
Moderator: SourceGear
Renaming Folders Broke Show Labels
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
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
I was able to reproduced the diff failure and I have logged it as bug 13261. Thanks for the report.
Yes, we try to synchronize the working folder with the repository folder on renames.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.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Great, I look forward to it being resolved.lbauer wrote:I was able to reproduced the diff failure and I have logged it as a bug. Thanks for the report.
It's actually quite handy, since I would have renamed the folders anyway, but I just wasn't expecting it to happen.lbauer wrote:Yes, we try to synchronize the working folder with the repository folder on renames.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.
Thanks,
Matt