code_junkie

Not all required revisions are specified sharpsvn

Nov 13th, 2011
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. try
  2. {
  3. SvnCheckOutArgs argsSVNCheckout = new SvnCheckOutArgs();
  4. SvnUpdateResult result;
  5. SvnTarget _rootSVNTarget = null; // = new SvnTarget();
  6. string serverUrl = "http://svn.snaffpaw.com:8080/CPM Creator/";
  7.  
  8.  
  9. // The Subversion target to run log against
  10. SvnTarget target = null;
  11.  
  12. // Attempt to create an SvnTarget by parsing the targetPath
  13. if (string.IsNullOrEmpty(targetPath) ||
  14. !SvnTarget.TryParse(targetPath, out target))
  15.  
  16. if (string.IsNullOrEmpty(serverUrl) || (!SvnTarget.TryParse(serverUrl,out _rootSVNTarget)))
  17.  
  18.  
  19. //SvnStatusArgs argSVN = new SvnStatusArgs();
  20. //argSVN.RetrieveRemoteStatus = true;
  21.  
  22. //Collection<SvnStatusEventArgs> infos;
  23. //bool isChecked = client.GetStatus(targetPath, argSVN, out infos);
  24.  
  25. // Attempt to create an SvnTarget by parsing the targetPath
  26. if (string.IsNullOrEmpty(targetPath) ||
  27. !SvnTarget.TryParse(targetPath, out target))
  28.  
  29.  
  30. if (string.IsNullOrEmpty(serverUrl) || !SvnTarget.TryParse(serverUrl, out _rootSVNTarget))
  31.  
  32.  
  33.  
  34. client.Authentication.DefaultCredentials = new NetworkCredential("guest", "guestpwd");
  35.  
  36.  
  37.  
  38. client.DiffMerge(targetPath, _rootSVNTarget, target); //<<<-- errors here
  39. }
  40. // ...
  41.  
  42. using (SvnClient client = new SvnClient())
  43. {
  44. client.DiffMerge(
  45. "CHANGES", // Target to merge to
  46. new SvnUriTarget(new Uri("http://svn.collab.net/repos/svn/tags/1.5.0/CHANGES")), SvnRevision.Head),
  47. new SvnUriTarget(new Uri("http://svn.collab.net/repos/svn/tags/1.5.5/CHANGES"), SvnRevision.Head));
  48. }
Add Comment
Please, Sign In to add comment