View Content of Deleted File Svn

2019-03-23 08:25发布

问题:

For a deleted file what's the command to use to view the content of a old revision

E:\Downloads\eeli\eel\eel>svn cat eel-scalable-font.h -r 2
svn: warning: 'eel-scalable-font.h' is not under version control

回答1:

You need to use a repository URL (not working copy), and use the @rev syntax. Something like:

svn cat https://myhost/svn/eeli/eel/eel/eel-scalable-font.h@2


回答2:

I think what your looking for is:

svn cat eel-scalable-font.h@2


回答3:

ok got it. I hve got to point to the repository rather than the working copy

E:\Downloads\eeld>svn cat file:///E:/Downloads/eel/trunk/eel/eel-scalable-font.h@2