开发者

How can you temporarily roll back a single file to a known good state in svn?

I'm currently trying to return a single file to the state of a previous revision in subversion. I don't want to commit the file, just leave it as a modification to the working copy for a bit. How would I do that?

Edit: It was suggested that I use checkout, but if I run the command that I would expect to work I get:

$ svn help checkout
checkout (co): Check out a working copy from a repository.
usage: checkout URL[@REV]... [PATH]


Valid options:
  -r [--revision] arg      : ARG (some commands also take ARG1:ARG2 range)
                             A revision argument can be one of:
                                NUMBER       revision number

$ svn checkout -r 133 templates/supplier.post_product.tpl
svn: Client error in parsing arguments

I guess perhaps I have to use a url to a directory instead of a pat开发者_运维技巧h?


svn up -r foo path/bar


You can individually checkout the older revision of the file, no commit necessary.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜