Check In

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

Moderator: SourceGear

Post Reply
EXODUS

Check In

Post by EXODUS » Sun Jun 05, 2005 7:48 pm

I am get an error,

------
An unhandled exception of type 'System.Exception' occurred in vaultclientoperationslib.dll

Additional information: Updating the working folder failed for the following files:
$/Northwind/[dbo].[SalesByCategory].sql (invalid EOL specified!)
-------

this is the function that fire it.

-----
private void CheckInBtn_Click(object sender, System.EventArgs e)
{
string LTempStr = "";
if(m_Client.TreeCache.Repository.Root.FindFolderRecursive(FolderTree.SelectedNode.FullPath) != null)
{
if(m_Client.TreeCache.Repository.Root.FindFileRecursive(FolderTree.SelectedNode.FullPath + FolderTree.PathSeparator + FileNameEdit.Text) != null)
{
VaultClientFile LFile = m_Client.TreeCache.Repository.Root.FindFileRecursive(FolderTree.SelectedNode.FullPath + FolderTree.PathSeparator + FileNameEdit.Text);
if(m_Client.IsCheckedOutByMeOnAnyMachine(LFile))
{
m_Client.Refresh();
ChangeSetItemColl LTempItemSet = new ChangeSetItemColl();
foreach (ChangeSetItem LChangeSetItem in m_Client.InternalChangeSet_GetItems(false))
{
if(LChangeSetItem.DisplayRepositoryPath.ToString() == FolderTree.SelectedNode.FullPath + FolderTree.PathSeparator + FileNameEdit.Text)
{
LChangeSetItem.Comment = "";
LTempItemSet.Add(LChangeSetItem);
}
}
if(m_Client.Commit(LTempItemSet, false, false))
{

LTempStr = "Successfully checkedin object " + FileNameEdit.Text + ".";
}
else
{
LTempStr = "Failed to checkin object " + FileNameEdit.Text + ".";
}
}
else
{
LTempStr = "You do not have object " + FileNameEdit.Text + " checked out.";
}
}
else
{
LTempStr = "Object " + FileNameEdit.Text + " does not exist.";
}
}
else
{
LTempStr = "The repository path " + FolderTree.SelectedNode.FullPath + " does not exist.";
}
MessageEdit.AppendText(LTempStr + "\n");
}
-----

I am using teh curretn version 3.0.7 API
I have attached the test application,
Attachments
vaultclientoperationslib.zip
(211.61 KiB) Downloaded 222 times

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon Jun 06, 2005 8:28 am

EXODUS,

I'm confused as to what you're trying to do. Your test app failed in a earlier place for me. Email me using the button below this post with your phone number.

Post Reply