开发者

symfony: how "svn revert ." works?

开发者 https://www.devze.com 2023-01-25 08:41 出处:网络
i\'ve done a checkout, after that i modify a file that has been download. Then i do svn revert . where the file is, expecting it has again the contents that has after doing the che开发者_运维问答cko

i've done a checkout, after that i modify a file that has been download.

Then i do svn revert . where the file is, expecting it has again the contents that has after doing the che开发者_运维问答ckout but it has the modification i have made after.

So how can i go the state of the file after doing the checkout?

Javier


You need the recursive flag

svn revert -R .

Your command will only revert things on the folder, e.g. svn-property changes, not on files or folders below.


You could also DELETE the changed file, then do an UPDATE from anyplace above it on the folder tree.

SVN "updates" missing files by putting them back!

0

精彩评论

暂无评论...
验证码 换一张
取 消