Add and Share: Is it possible?

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

Moderator: SourceGear

Post Reply
CdrJameson
Posts: 8
Joined: Fri Jun 17, 2011 7:11 am

Add and Share: Is it possible?

Post by CdrJameson » Thu Sep 22, 2011 4:41 am

Hello,

I've just split off part of a shared header file into a new file, and I wanted to add this file to the repository and share it in the same manner as its parent.

Unfortunately, I couldn't find a way to do these within the same commit so I resorted to checking in the new file and the modifications to the old one, then quickly setting up the share and trying to check it in before the build server noticed the first commit*.

Is there a way to perform the add and share operations within the same commit?

Ta

*I realise that I could have reduced the race against time (and deliberately checking in a broken build) by checking in the added file by itself in one commit, then checking in the modifications and the share in the second operation, but I'd rather just do the whole thing in a single step as they are conceptually one change.

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

Re: Add and Share: Is it possible?

Post by lbauer » Thu Sep 22, 2011 8:25 am

There isn't a way to do this, since the file hasn't yet been added.

You could consider scripting this in a batch file and using the Vault Command Line Client to run the two transactions one right after the other.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply