How to recreate locally deleted files?

坚强是说给别人听的谎言 提交于 2019-12-25 08:20:33

问题


I moved 2 files, since they were conflicting with the latest hg pull and I've already done these changes at my work computer. Now I'm at my home computer, and I don't care about my home version anymore and I want to get the "latest" from the repository, so I moved the files handler.py and model.py to handlerbackup.py and modelbackup.py and did an hg pull, expecting that Mercurial would recreate my files after the move, but it didn't.

What should I do to recreate my deleted files from the repository?


回答1:


You can always undo any local changes with hg revert FILES. In this case mercurial thinks you wanted to delete it, and is waiting for you to commit the deletion.




回答2:


You did a pull but did you also do an update? Pull doesn't update your files; update does.



来源:https://stackoverflow.com/questions/9382410/how-to-recreate-locally-deleted-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!