Specify comment search

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

Moderator: SourceGear

Post Reply
realtytrac
Posts: 34
Joined: Wed Jun 15, 2005 2:07 pm

Specify comment search

Post by realtytrac » Mon Aug 15, 2005 10:39 am

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

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

Post by lbauer » Mon Aug 15, 2005 2:22 pm

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.
Linda Bauer
SourceGear
Technical Support Manager

realtytrac
Posts: 34
Joined: Wed Jun 15, 2005 2:07 pm

Post by realtytrac » Mon Aug 15, 2005 2:53 pm

is there a way to programmatically only seek out specific comment types?

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

Post by lbauer » Mon Aug 15, 2005 3:03 pm

No, not presently. I can log a feature request for the ability to search separately for item comments or changeset comments.
Linda Bauer
SourceGear
Technical Support Manager

realtytrac
Posts: 34
Joined: Wed Jun 15, 2005 2:07 pm

Post by realtytrac » Mon Aug 15, 2005 3:21 pm

THANK YOU

Post Reply