Pre Commit/Checkin Hook

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

Moderator: SourceGear

Post Reply
bryanandrews
Posts: 14
Joined: Mon Nov 28, 2005 6:25 pm

Pre Commit/Checkin Hook

Post by bryanandrews » Mon Mar 12, 2007 12:45 pm

We are exploring various ways to update the version number in an assemblyinfo file when users are checking in code. Are there precommit hooks that would force an update task on the client right as the developer was checking in?

We have a custom nant task that will increment the version... is there a way to enforce this automatically on checkin?

Thanks.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Mon Mar 12, 2007 1:54 pm

The version should increment every time changes are checked in. If there are no changes, then the default is for Vault to perform an undo check out, though that can be changed in Tools - Options.

Do you have something different going on where changes and check-ins aren't incrementing the version?

bryanandrews
Posts: 14
Joined: Mon Nov 28, 2005 6:25 pm

Post by bryanandrews » Mon Mar 12, 2007 2:29 pm

I am talking about our assemblyinfo version (for the dlls we produce).

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Mon Mar 12, 2007 3:13 pm

Currently we don't have something that will do that. I can log a request.

F: 11416

bryanandrews
Posts: 14
Joined: Mon Nov 28, 2005 6:25 pm

Post by bryanandrews » Mon Mar 12, 2007 3:36 pm

I have a custom nant task that does this... i am just asking if there are precommit hooks (like subversion) that let's you do "something" when you are committing.

Thanks for the response!

Post Reply