API to Check Files Checked Out By Me

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

Moderator: SourceGear

Post Reply
btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

API to Check Files Checked Out By Me

Post by btd » Wed Nov 07, 2007 1:55 pm

I have written a command line (CL) code that will check in files that I have checked out on "my machine". But if I work on a different machine and check out a file, "my machine" does not know this and will not check the file in.

So what I need is a CL code that will check in any and all files checked out to me, regardless of where I checked it out.

So is there some documentation that I can use that will do help me?
Do you have a script that will assist in doing this for me.

Thanks


btd

Vault.exe COMMIT -server VaultServer -user me -password abcd -repository MyRepp -unchanged checkin

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Wed Nov 07, 2007 2:54 pm

A commit will only work where you checked out the files. What if you used UNDOCHECKOUT. Would that do what you want to accomplish?
Jeff Clausius
SourceGear

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

API to Check Files Checked Out By Me

Post by btd » Thu Nov 08, 2007 7:22 am

No that won't accomplish what I want. What I am looking for is a vault command that will search a repostiory for all files checked out by a user defined user. This way, I'm sure all the files are checked in regardless of what serevr they were checkedout from.

So is this available? And do you know where the documenation for vault comamnds is?

Thanks

btd

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

Post by Beth » Thu Nov 08, 2007 9:01 am

There isn't a way currently, but I have an open feature request to make an admin function that can force a check in. That way you'd use the admin tool for checking in no matter where you checked out at. I can add your "vote" if you want.

In the meantime, you might want to save your script in a file, then check it into Vault too, then no matter where you check out code from, you can also pull down your script from Vault to that machine and easily use it.

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

API to Check Files Checked Out By Me

Post by btd » Thu Nov 08, 2007 10:32 am

Yes, please add my vote to include this feature in a future release.

Also, if possible, can you extend the CL language to include CODE that will allow me to check in code by a USER DEFINED USER?

Thanks

btd

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

Post by Beth » Thu Nov 08, 2007 11:06 am

I added your vote.

On the command line part, I want to make sure I understand what you mean by a "USER DEFINED USER." You mean to check in another user's code even though you are currently logged in? Or do you mean that the same admin function we just talked about also be able to be done via command line?

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

API to Check Files Checked Out By Me

Post by btd » Thu Nov 08, 2007 2:13 pm

Sure, and I appreciate you asking for clarification.

I'm not sure what the new "Vault Admin tool" will do.

What I mean is... In addition to the adding this function to the admin tool, I would like a COMMAND LINE function/method that will allow me to check in any and all files from any server by a userid of choice. Right now, I am only able to check in code from the server I am looged into. So for example, if I log on to a different server and check out a file, then back on the other server, I would like a COMMAND LINE FUNCTION/METHOD that would allow me to check in files REGARDLESS of which server it was checked out from. It's my understanding that this code is not avaialble.

Make sense?

Tom

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

Post by Beth » Thu Nov 08, 2007 2:45 pm

Ok, got it. I'll get that logged. Thanks for the feedback.

Post Reply