on the VaultHistoryQueryRequest, i am doing searches based upon comments found in files. I noticed that it searches comments for both checkin's and checkout's. Is there a way to specify it to only search checkin comments or checkout comments?
req.CommentFilter = VaultLib.VaultQueryRequestComments.FilteredComment;
req.CommentSubstring= VDDNumber;
thanks
haider
Specify comment search
Moderator: SourceGear
There really isn't a checkout comment in Vault. It's actually an item comment. It isn't saved until the item is committed or checked in. There is also a changeset or checkin comment.
Here are the details:
--If a file has an item comment AND a checkin (or change set) comment, the item comment appears in File History and Folder History by Item. The checkin comment appears in Folder History by Version.
--If a file has only an item (checkout ) comment, the item comment appears in File History and Folder History by Item. There is no comment in Folder History by Version.
--If a file has only a checkin comment, then the checkin comment appears in all three History locations.
So basically, all comments are checkin comments, but some apply to items and some to changesets.
Here are the details:
--If a file has an item comment AND a checkin (or change set) comment, the item comment appears in File History and Folder History by Item. The checkin comment appears in Folder History by Version.
--If a file has only an item (checkout ) comment, the item comment appears in File History and Folder History by Item. There is no comment in Folder History by Version.
--If a file has only a checkin comment, then the checkin comment appears in all three History locations.
So basically, all comments are checkin comments, but some apply to items and some to changesets.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
-
- Posts: 34
- Joined: Wed Jun 15, 2005 2:07 pm