public virtual void UpdateIsDone ()
{
string added = rootCheckout + "testfile";
File.Create (added).Close ();
repo.Add (added, false, new NullProgressMonitor ());
ChangeSet changes = repo.CreateChangeSet (repo.RootPath);
changes.AddFile (repo.GetVersionInfo (added, VersionInfoQueryFlags.IgnoreCache));
changes.GlobalComment = "test";
repo.Commit (changes, new NullProgressMonitor ());
PostCommit (repo);
// Checkout a second repository.
FilePath second = new FilePath (FileService.CreateTempDirectory () + Path.DirectorySeparatorChar);
Checkout (second, repoLocation);
repo2 = GetRepo (second, repoLocation);
added = second + "testfile2";
File.Create (added).Close ();
repo2.Add (added, false, new NullProgressMonitor ());
changes = repo.CreateChangeSet (repo.RootPath);
changes.AddFile (repo.GetVersionInfo (added, VersionInfoQueryFlags.IgnoreCache));
changes.GlobalComment = "test2";
repo2.Commit (changes, new NullProgressMonitor ());
PostCommit (repo2);
repo.Update (repo.RootPath, true, new NullProgressMonitor ());
Assert.True (File.Exists (rootCheckout + "testfile2"));
DeleteDirectory (second);
}