<vaultcheckin> NAnt task without items in change list

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

Moderator: SourceGear

Post Reply
icnocop
Posts: 46
Joined: Wed Aug 18, 2004 12:41 pm

<vaultcheckin> NAnt task without items in change list

Post by icnocop » Tue Aug 07, 2007 11:02 pm

Hello.

We are using SourceGear Vault v4.0.2.

I am getting the following error when doing a <vaultcheckin> on a repository path that does not have any items in its changelist:

Internal Error: System.Exception
The current change set does not have any items for $/MyRepositoryPath

Is there a work-around? Or how can I get the number of change list items for a specific repository path?

The only work-around I can think of is to perform a <vaultlistchangeset>, output the results to a file, and then count the number of xml items. Is there something faster/easier?

I would have expected <vaultcheckin> to just not perform a check-in if there are no items in the change list.

Thank you very much.

icnocop
Posts: 46
Joined: Wed Aug 18, 2004 12:41 pm

Post by icnocop » Wed Aug 08, 2007 3:38 am

I've attached a VaultCheckIn.cs that implements the work-around.
Attachments
VaultCheckIn.zip
(1.23 KiB) Downloaded 187 times

Post Reply