[Author]: http://blog.youkuaiyun.com/nixawk
[Origin]: http://resources.infosecinstitute.com/hacking-svn-git-and-mercurial/
root@gnu:~# svn co http://example.com/.svn/ theora
svn: Repository moved permanently to'http://example.com/.svn/'; please relocate
|
svn 同步时,提示重新定位,改用下面的地址
root@gnu:~# svn co http://example.com/
svn: OPTIONS of 'http://example.com': 200 OK(http://example.com)
|
上面的提示表明, 我们无法同步svn仓库,但是HTTP返回200,因此我们可以自行下载svn信息库.
root@gnu:~# wget -m -I .svn http://example.com/.svn/
|
root@gnu:~# ls -al example.com/
total 12
drwxr-xr-x 3 root root 4096 Oct 1901:09 .
drwxr-xr-x 38 root root 4096 Oct 1901:09 ..
drwxr-xr-x 6 root root 4096 Oct 19 01:09 .svn
|
root@gnu:~/example.com# svn status
! css
! contact
! ssi
! index.shtml.en
! benefits
! images
! fluendo-theoratest.pls
! news
! torrents
! style.css
! downloads
! cortado
! contact.html
! lists.html
! files
! template.shtml.en
! doc
! cortado.jar
! svn
! faq
! index_old.html
! svn.html
! index.html
! download.html
! content
! vp3.html
! theorafaq_old.html
! vmail.html
! .htaccess
! theorafaq.html
! discuss
|
root@gnu:~/example.com# svn update
Restored 'fluendo-theoratest.pls'
Restored 'style.css'
Restored 'contact.html'
Restored 'lists.html'
Restored 'template.shtml.en'
Restored 'cortado.jar'
Restored 'index_old.html'
Restored 'svn.html'
Restored 'index.html'
Restored 'download.html'
Restored 'vp3.html'
Restored 'theorafaq_old.html'
Restored 'vmail.html'
svn: Can't open file '.svn/text-base/.htaccess.svn-base': Nosuch file or directory
|
root@gnu:~/example.com# svn info
Path: .
URL:http://svn.xiph.org/websites/example.com
Repository Root: http://svn.xiph.org
Repository UUID:0101bb08-14d6-0310-b084-bc0e0c8e3800
Revision: 19247
Node Kind: directory
Schedule: normal
Last Changed Author: giles
Last Changed Rev: 19120
Last Changed Date: 2014-05-01 14:09:44 -0400 (Thu, 01 May 2014)
|