Differences between revisions 4 and 5
Revision 4 as of 2006-07-05 07:55:11
Size: 1361
Editor: ZoomQuiet
Comment: 调整属页名称
Revision 5 as of 2009-12-25 07:09:34
Size: 1361
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
::-- dreamingk [[[DateTime(2006-03-02T06:41:37Z)]]]
[[TableOfContents]]
::-- dreamingk [<<DateTime(2006-03-02T06:41:37Z)>>]
<<TableOfContents>>

::-- dreamingk [2006-03-02 06:41:37]

1. 移动Repository(合并两个Repository)

  • manual里面讲过, 正好用到, 遂整理一下, 还是用dump和load. 例如我要吧modeling这个repository合并到mytext的math/modeling目录里面 (假设Repository都放在g:/svndata里面).

    先dump modeling:

     svnadmin dump g:/svndata/modeling > modeling.dump

    然后, 确保mytext里面已有math/modeling这个目录, 若没有则建一个:

     svn makdir math/modeling 
     svn ci -m "add modeling"

    然后用load, 把原来dump的东西加到mytext中:

     svnadmin load g:/svndata/mytext --parent-dir math/modeling < modeling.dump
    完成

2. 设置MIME-TYPE

  • 写WSGI介绍, 传到svn上, 原为html文件, 发现只显示纯文本. 需设置mime-type 如下:

svn propset svn:mime-type text/html  *.html
svn propset svn:mime-type image/png  *.png
svn propset svn:mime-type image/gif  *.gif
svn propset svn:mime-type image/jpeg  *.jpg

完成


  • 嗬嗬!谢谢分享!天成在网络中消失了有段时间了哪!如何了?!现在? -- ZoomQuiet

    • 偶让天成帮忙贴的 :) , 天成是万年潜水员 -- Hoxide

SubVerSion/tips (last edited 2009-12-25 07:09:34 by localhost)