问题
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