View Content of Deleted File Svn

2019-03-23 08:35发布

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

3条回答
我命由我不由天
2楼-- · 2019-03-23 08:56

I think what your looking for is:

svn cat eel-scalable-font.h@2
查看更多
啃猪蹄的小仙女
3楼-- · 2019-03-23 08:59

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

查看更多
戒情不戒烟
4楼-- · 2019-03-23 09:04

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
查看更多
登录 后发表回答