Hi John, you can try changing the config file to output to spit out Debug information but that is probably going to give you a lot of garbage.  The real issue is that the StatusCommand was just issuing a command and not listening to the Responses that were coming back.  I have changed this and added a command line implementation.  I have also added a Folders object so you can specify which entries that you want to get the status for.  I have also started documenting the messages being sent between the client and server (in the doc/NetCapture/[CommandName] folder) if you (or anyone :-)) is curious about the messages that are being sent between the client and server.
 
Also I have added the options (i.e. -q for terse output, etc.) but have not implemented yet.  I will raise a bug so I don't forget about them.
 
Cheers,
 
Clayton
-----Original Message-----
From: John Murphy [mailto:johnmurphy@visi.com]
Sent: January 1, 2005 9:03 PM
To: sharpcvslib-developers@lists.sourceforge.net
Subject: [Sharpcvslib-developers] StatusCommand Question

Can anyone provide an example of how to use the StatusCommand? Presumably you add event handlers to get the response back from the server but I am not sure how to get the call write. Here is what I am doing now. In my sandbox I have a file c:\cvsdev\test\testsln\testsln.sln that I want status for. The module is called testsln.  It would be nice to be able to get status on everything in a directory too.
 
This doesn't work

CvsRoot root = new CvsRoot( ":pserver:jam@localhost:/code" );
WorkingDirectory wd = new WorkingDirectory( root, "c:\\cvsdev\\test", "testsln" );
Entry entry = Entry.CreateEntry( "c:\\cvsdev\\test\\testsln\\testsln.sln" );
ICommand cmd = new StatusCommand( wd, "/testsln", entry );     << is this correct?
CVSServerConnection conn = new CVSServerConnection( wd );

// snip add event handlers

cmd.Execute( conn );

 
John A. Murphy
 
Home Page http://www.murphybytes.com