문제

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 path?

도움이 되었습니까?

해결책

svn up -r foo path/bar

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top