Hi,
Please consider the following scenario:
1. User A creates and commits a file (lets say file1.txt).
2. User B deletes this file from the repository.
3. User A has the file in his local working copy and would like to restore it. The user finds that out after an Update()
was done.
What is the proper way to achieve this?
So far I've tried:
- Client.Revert()
followed by Update
but I see no change.
- Client.Merge(local_working_copy, SvnUriTarget_of_repository, revision_range_between_the_previous_and_new)
- still no change.
- Client.DiffMerge()
, where the target path is the local path of the file, the merge_from is the path in the repository with the previous revision number, and the merge_to is the local path with the new revision. - I get an exception saying that the file is not under version control. It can't be added since it doesn't exist locally anymore. When I replaced the target path to be the repository path I get an exception saying this is not a working copy.
Please help,
Noa