Problem with File History for a Shared Label
Moderator: SourceGear
Problem with File History for a Shared Label
First let me say that I tried to reproduce this problem, but did not succeed. Nevertheless, the problem will become evident when you see the attached pictures.
So here's what happened. Normally when we create a new branch, we label it with a "base label" right away. The main reason we do this is so that we can detect what files have been added, deleted, or changed since the branch was created. However in this case, the label came later than normal and we had to tweak the label to make it accurate (though a combination of deleting files, using label promotion, and undeleting files). The good news is that when you do a get by label for that base label, you do indeed get the original files.
That said, we have at least two cases where files that are new to the branch show in their history the base label. These files are named pub_bank_CouponExcludeGame.sql and pub_bank_CouponGameExclusions.sql. If you pull up label promotion (see first picture), these files do not exist. If you do a get by label, these file are not pulled down from Vault. If you diff the label (see second picture), they show up as new files. Yet, if you do a file history, they both have the base label (see third picture).
Any ideas as to what is happening here? This sure seems like a bug to me.
So here's what happened. Normally when we create a new branch, we label it with a "base label" right away. The main reason we do this is so that we can detect what files have been added, deleted, or changed since the branch was created. However in this case, the label came later than normal and we had to tweak the label to make it accurate (though a combination of deleting files, using label promotion, and undeleting files). The good news is that when you do a get by label for that base label, you do indeed get the original files.
That said, we have at least two cases where files that are new to the branch show in their history the base label. These files are named pub_bank_CouponExcludeGame.sql and pub_bank_CouponGameExclusions.sql. If you pull up label promotion (see first picture), these files do not exist. If you do a get by label, these file are not pulled down from Vault. If you diff the label (see second picture), they show up as new files. Yet, if you do a file history, they both have the base label (see third picture).
Any ideas as to what is happening here? This sure seems like a bug to me.
- Attachments
-
- Yet file history seem to indicate that it is part of the label
- HistorySeemsToIndicateThatItIsPartOfLabel.JPG (101.09 KiB) Viewed 9090 times
-
- "Show Folder Differences" dialog "proves" they are new
- ShowFolderDifferencesProvesItIsNew.JPG (68.08 KiB) Viewed 9090 times
-
- Files not shown in label promotion, indicating they are not part of the label
- FileNotShownInLabelPromotion.JPG (87.84 KiB) Viewed 9090 times
To me it looks like maybe the file was removed from that label at some point, which I believe can be done in label promotion. Changes made through the label promotion tool are not shown in history, but we have a feature request logged to show that and I think that is what will make the difference here. Would you like me to add your vote?
Requested screen shot attached.
BTW, according to my tests, if you delete a file from a label (using label promotion), you will not see that label when doing a history of the file you just deleted from the label.
BTW, according to my tests, if you delete a file from a label (using label promotion), you will not see that label when doing a history of the file you just deleted from the label.
- Attachments
-
- "Show Labels" on the file in question indeed shows the base label
- ShowLabelsOnFileShowsTheLabelInQuestion.JPG (71.93 KiB) Viewed 9068 times