c# - SharpSvn: The proper way to restore a deleted file -


Please consider the following scenario: 1. User creates A and creates a file (can say file1.txt)
2. User B is removed from the repository of this file.
3. User A is a file in its local operating system and wants to restore it. The user feels that followed by was an update () .

What is the correct way to achieve this?

So far I have tried:
- clients. I do not see any change at the return () followed by updates .
- Client.Merge (local_working_copy, SvnUriTarget_of_repository, revision_range_between_the_previous_and_new) - There is no change yet.
- Client.DiffMerge () , where the target path is the local path of the file, Merge_from is the path in the repository with the previous revision number, and the merge is the local path with the new modification - tell me this The exception is that the file version is not under control. It can not be included because it is no longer present at the local level. When I changed the target path to the repository path, I get an exception, it is saying that this is not a working copy

Please help, no

You should reverse the modification properties, because you are rerouting the merge, that means you have a SvnRevisionRange Like:

  New SvnRevisionRange (newRevision, oldRevision);  

When you use new ones from the old, you are trying to apply the same change again (which is a no-op as it has already happened ).


Comments