c# - How to get the current repository? -


What is the current repository for a directory?

I want to:

  SvnInfoEventArgs information; Uri Repo = new Uri ("http: //my.server/svn/repos"); Client.GetInfo (repo, out-of-the-box);   

But I do not know what the URI directory is because it was first checked out. How can URI get a given checkout location?

I use the following to recover a repository URI from a folder:

  (var folderDlg = new FolderBrowserDialog ()) {folderDlg.Description = Resources.SelectBranchFolder; FolderDlg.ShowNewFolderButton = Incorrect; FolderDlg.RootFolder = Environmental Special folder My computer; If (folderDlg.ShowDialog () == DialogResult.OK) {string workingPath = folderDlg.SelectedPath; (Var svnclient = New SVNClient ()) using {URI Repo = svnClient.GetUriFromWorkingCopy (workbench); If (repo! = Null) {MessageBox.Show ("URI is for this folder". + Repo. AbsoluteURI); } Else {MessageBox.Show ("This is not a work SVN directory."); }}}}    

Comments