简体   繁体   中英

See state of file at revision in Subversion?

I deleted a file from Subversion. I don't want it back, but I want to see what it looked like at a revision.

How can I do this?

Either pass a specific revision to "svn update" (or "svn checkout") on a working copy that would have contained that file at the revision passed. Eg svn update -r123 ; OR pass a specific revision to svn cat in similar fashion to extract the file contents directly from the repository without a working copy. Using svn cat you may need to use a "peg revision" so that SVN looks at the folder structure at that given revision as well, so that it can actually find the file. Eg svn cat http://example.com/svn/file.txt@123

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM