I have a problem with SVN that I just cannot figure out. Whenever I try to commit the following block of C# code to my SVN remote repo, I am getting a CheckSum mismatch error.
Notice that the entire block of code is commented out.
The file only contains the commented out code displayed below. There is NOTHING else in the file.
The Code
/* private void CreateSvnInfoFile()
{
try
{
SvnInfoEventArgs svnInfo;
using (SvnClient client = new SvnClient())
{
client.GetInfo(solutionDir, out svnInfo);
}
FileInfo svnOut = new FileInfo(this.targetDir + Path.DirectorySeparatorChar + "SvnInfo.xml");
if (svnOut.Exists)
svnOut.Delete();
File.WriteAllLines(svnOut.FullName, new List<string>()
{
"<SvnInfo>",
" <Path>" + svnInfo.Uri.ToString() + "</Path>",
" <Revision>" + svnInfo.Revision.ToString() + "</Revision>",
"</SvnInfo>"
}.ToArray());
}
catch (Exception e)
{
Console.WriteLine(e);
}
} */
The Error
To test this, here are the steps I followed:
- In my local dir, I created .cs file named "BLEEPBLOOP.cs" with nothing in the file.
- Using TortoiseSVN, I right-clicked the file and selected "Add"
- Using TortoiseSVN, I right-clicked the file and selected "Commit"
- The file is now visible up in the SVN Remote Repo.
- I opened my local copy of BLEEPBLOOP.cs and copy/pasted the above code-block into the file.
- Saved the file.
- Using TortoiseSVN, I right-clicked the file and selected "Commit"
- The error message is then displayed.
How is this possible?
Thanks for reading!