Checkin command not working...
Moderator: SourceGear
-
- Posts: 24
- Joined: Tue Feb 12, 2008 8:07 am
Checkin command not working...
Hi
I am trying to check in a modified file with the following command...
ServerOperations.ProcessCommandCheckIn( new string[] { filePath }, UnchangedHandler.UndoCheckout , false, LocalCopyType.Leave );
However the result is always that the file is Unchecked out rather than the modified version being checked in.
I have tried using both the vault path and the modified file disk path with the same result - what am I doing wrong...?
Matt
I am trying to check in a modified file with the following command...
ServerOperations.ProcessCommandCheckIn( new string[] { filePath }, UnchangedHandler.UndoCheckout , false, LocalCopyType.Leave );
However the result is always that the file is Unchecked out rather than the modified version being checked in.
I have tried using both the vault path and the modified file disk path with the same result - what am I doing wrong...?
Matt
-
- Posts: 24
- Joined: Tue Feb 12, 2008 8:07 am
-
- Posts: 24
- Joined: Tue Feb 12, 2008 8:07 am
I am using this to check out the file...
and then this to check it back in again...
I am not calling anything else after the CheckIn - do I need to...?
Code: Select all
GetOptions go = new GetOptions();
go.Merge = MergeType.AttemptAutomaticMerge ;
go.MakeWritable = MakeWritableType.MakeAllFilesWritable ;
go.SetFileTime = SetFileTimeType.Current;
ServerOperations.ProcessCommandCheckout(new string[] { filePath } , true, true, go);
Code: Select all
ServerOperations.ProcessCommandCheckIn( new string[] { filePath }, UnchangedHandler.UndoCheckout , false, LocalCopyType.Replace );
-
- Posts: 24
- Joined: Tue Feb 12, 2008 8:07 am
-
- Posts: 24
- Joined: Tue Feb 12, 2008 8:07 am
Vault 4.1.2 now handles calling ProcessCommandCheckin directly after calling ProcessCommandCheckout.
Subscribe to the Fortress/Vault blog