#17 Log Command fails

open
nobody
Library (4)
5
2004-12-03
2004-12-03
No

The following code causes an error:

Hi again

Why does LogCommand.Execute() only check the
FoldersToUpdate array ?
And by the way, i tried to do it that way:
wd = new WorkingDirectory(CVSRoot, wdirname, reldirname);
wd.Folders.Clear();
FileInfo file = new FileInfo(pathdir + "\\CVS");
FileInfo reposfile = new FileInfo(pathdir +
"\\CVS\\Repository");
Folder folder = new Folder();
folder.Repository = Repository.Load(reposfile);
Entries entries = Entries.Load(file);
Entry entry = entries[vpath];
folder.Entries.Add(pathdir, entry);
wd.Folders.Add(pathdir, folder);
wd.FoldersToUpdate = new Folder[1];
wd.FoldersToUpdate[0] = folder;
cnx = new CVSServerConnection(wd);
cnx.Connect(wd, userpass);
RegisterListenEvents(cnx);
LogCommand cmd = new LogCommand(wd, pathdir, entry);
cmd.Execute(cnx);
But cvs replies the error message:
cvs [server aborted]: protocol error: is not absolute

how should i proceed, my goal here is to get the log
command response (and store it into a temporary text
file) for only one file (always Index.xml) ?

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks