-2

SharpSVN has SvnClient.GetUriFromWorkingCopy to get a repository URI from the path of a working copy, but I don't see a function that does the reverse--there's no GetWorkingCopyFromUri.

Assuming there is one, how do I get the name of the working copy from a repository URI?

TIA

chrisd
  • 853
  • 1
  • 9
  • 23
  • 1
    Well how would the Uri know about it? I can put up 10 working copies to the same svn in 10 different locations on my pc. You could scan all folders and look for an .svn and try if a `svn info` on this location works - but what is the point. – Patrick Artner Nov 10 '17 at 20:34
  • 1
    Wow, that's right. The tendency is to think in terms of a 1:1 relationship between a tree in the repository and the local tree you're working with, but of course that's not the case at all. I'll have to think of another way to do this. Thanks. – chrisd Nov 10 '17 at 20:38

1 Answers1

0

As the commenter points out, this is not possible because there can be multiple working copies of a file in the repository.

chrisd
  • 853
  • 1
  • 9
  • 23