开发者

Check to See if File is in Repository with SharpSVN

How do I check if a file is already in a repository (or NOT in the repository) so I can determine whether I need to 'add' it first before doing the check in? (For the record, I have check-in working, but I get an exception when I try to check in a file that has not yet bee开发者_C百科n added to the repository.)


I believe you can use SvnClient.GetRepositoryIdFromUri to verify that a specific file exists. If that method returns false, then you'll need to Add the file to the repository.


While SvnClient.GetRepositoryIdFromUri may work (I wasn't able to get it working), I did find an answer elsewhere on SO which did work (this didn't come up in my original search, so sorry about the duplicate question).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜