Undo Checkout for command line

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

Moderator: SourceGear

Post Reply
justSteveB
Posts: 3
Joined: Thu Jun 07, 2007 9:37 am

Undo Checkout for command line

Post by justSteveB » Thu Jun 07, 2007 9:41 am

How do I undo the checkout of a file via the command line?
Is it something like:
-command UndoCheckoutFile -project "project" -file "file to undo"


Thanks

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

Post by Beth » Thu Jun 07, 2007 10:48 am

Here are the two check out commands we have in SOS:

- UndoProjectCheckout -

Cancels the checkout of a project by overwriting the files in the
project with the latest version under source control. This
operation also makes the files in the project read-only.
Specifying -recursive will undo the checkout of the entire project
tree under the project.

Required Params: -server, -name, -password, -database or -alias, -project
Optional Params: -workdir, -recursive

- UndoCheckOut -

Cancels a checkout by overwriting the file with the latest version
under source control. Also makes the file read-only. If a working
directory is not specified (please see the Note on Working
Directories above for information on how working directories
function), the Command Line Client will assume the current directory
or the file is a full pathname.

Required Params: -server, -name, -password, -database or -alias, -project,
-file
Optional Params: -workdir

You can find our CLC documentation here: http://download.sourcegear.com/misc/sos ... lient1.htm

Post Reply