标题:使用vim来查看svn diff的内容 直接SVN集成版 出处:Felix021 时间:Wed, 04 Aug 2010 23:55:01 +0000 作者:felix021 地址:https://www.felix021.com/blog/read.php?1903 内容: 参考 http://hi.baidu.com/oscarbj/blog/item/43931bfbd4de3c66034f56b6.html 修改~/.subversion/config diff-cmd = vimdiff_for_svn 下面是代码: #!/usr/bin/python import sys, os diffprogram = '/usr/bin/vimdiff' fn_old = sys.argv[6] fn_working_copy = sys.argv[7] # arrange the args in the order diffprogram expects them args = ['mydiff', '-d', fn_old, fn_working_copy] os.execv(diffprogram, args) Generated by Bo-blog 2.1.0