I was modifying files renaming them and switching them around (I was testing alternative homepages). Now I get a status message that says 'File has been replaced' and an R. I'm not sure what to do to solve this. I'm using Coda, and it does not solve it. So i guess it's command line time. The version that I care about is my local version, and I want to overwrite the remote version. i'm the only person working on it so a brute force approach is fine.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
- Copy the file and put it in a temp location
- Run "svn revert "
- Now copy it back to the same location
- Run "svn st " to check status
回答2:
i fixed it by simply committing. it for some reason code did not do this automatically.
回答3:
I used a similar procedure to that explained by Version Control Buddy to correct this issue in RAD with Subversive SVN Connector (Eclipse may be similar):
- List item
- Copy the file(s) to a temp location outside of RAD
- Revert the file(s) in RAD using Right-click > Team > Revert
- Outside of RAD, copy the saved back to the location
- Refresh the folder in RAD, and the correct status will show.
Note that I find if I just directly check in a file that is showing as Replace, the history of the original file is not easily view-able, so it may be worth these steps to preserve the history, especially on a multi-user project.