Hi, I'm exploring using vaultgetfile instead of <exec>vault. The problem with getfile is that if a file is currently checked out, it will still be retrieved and any changes are effectively rolled back. Is there a way to run vaultgetfile in "attempt merge" and fail if the merge is not successful? Because currently I'm using <exec program="vault"> and that will merge, but it won't tell me if the merge failed.
Thanks for any help.
PS: I'm using Nant 0.85rc3, Vault 3.1.2, and the bin "VaultNantTasks_3.0.6..." downloaded from vaultpub.
Nant VaultGetFile doesn't merge
Moderator: SourceGear
Thanks for putting it onto the wishlist. In the meantime I'm trying to parse the output, and I've captured it, but all I get is: <vault><result success="yes"/></vault>. This is because I already know from my GUI that I have a merge to do, so when I try to build with Nant, the get has nothing to do. And the build therefore doesn't fail.
My command-line includes the -verbose switch.
Eric
My command-line includes the -verbose switch.
Eric
-
- Posts: 40
- Joined: Thu Apr 06, 2006 10:33 pm
Mitch,
I attempted to explain the thinking behind this behavior in the other thread: http://support.sourcegear.com/viewtopic.php?p=25192. Let me know if you have additional questions or concerns.
I attempted to explain the thinking behind this behavior in the other thread: http://support.sourcegear.com/viewtopic.php?p=25192. Let me know if you have additional questions or concerns.
Ian Olsen
SourceGear
SourceGear