0

i want to monitor the byte-rate of the transfer while commit action runs

i have used the SvnClient.Progress event but

  1. this event triger every millisecond and not every second
  2. the event argument of TotalProgress not give the all byte count of the transfer (return to me -1)

My code is :

using (SvnClient cl = new SvnClient()) {
    cl.Progress += new EventHandler<SvnProgressEventArgs>(cl_Progress);
    SvnCommitResult res;
    cl.Commit(PathToFile, new SvnCommitArgs {LogMessage = "Commit message" }, out res);
}

Event handler :

static void cl_Progress(object sender, SvnProgressEventArgs e) {
     log( e.TotalProgress - e.Progress ) ;
}
foxdanni
  • 199
  • 1
  • 19
  • same as : [Show the progress of commiting](http://stackoverflow.com/q/2863301/1205557) – foxdanni Apr 16 '12 at 19:56
  • This isn't easy to implement, especially for Subversion 1.6. I would recommend just copying the code I wrote for that purpose in AnkhSVN. This code is part of the Progress dialog and the source is available in: http://ankhsvn.open.collab.net/svn/ankhsvn/trunk/src/Ankh.UI/ProgressDialog.cs (username guest, no password. Or your open collabnet login credentials) – Bert Huijben Aug 21 '12 at 16:49

0 Answers0