博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
a bug in windows svnindex.cmd
阅读量:4591 次
发布时间:2019-06-09

本文共 953 字,大约阅读时间需要 3 分钟。

 

when run svnindex.cmd, it always tell you "zero source files found"

after a painful diggin into svn.pm (the perl module to deal with svn), i found that:

 1. first, svn.pm invokes "svn info -R $SourceRoot" to get all version info of files in $SourceRoot (passed by /source option),

 2. then svn.pm stores all files in a dictionary which using the local file path as key

 3. svnindex.cmd call srctool -r to get all source files info in *.pdb, and use the source file name as a key to query info saved in step2

the problem is:

   svn.pm uses relative path, but *.pdb uses absolute path, so you will never find a svn log info for any file

 

fixup:

   change svn.pm line 162: 

$LocalFile = lc $1;

to   

$LocalFile = $SourceRoot . "\\" . lc $1; #make path absolute

 ==============================================

this bug is caused by the output format changes in svn 1.7, i found a more robust solution:

 

转载于:https://www.cnblogs.com/ellusak/archive/2013/06/08/3127661.html

你可能感兴趣的文章
c# 定义和调用索引器
查看>>
c# 引用参数-ref
查看>>
c# 多态
查看>>
c# 参数数组
查看>>
c# 虚属性
查看>>
c# 子类的声明
查看>>
c# 类嵌套
查看>>
c# 方法的隐藏
查看>>
c# 接口实现
查看>>
c# 密封类
查看>>
c# is运算符
查看>>
c# 抽象类与接口
查看>>
c# 委托
查看>>
c# 接口使用
查看>>
c# 事件
查看>>
c# as运算符
查看>>
c# 调试过程
查看>>
c# 结构
查看>>
C# 中的异常处理
查看>>
c# 调试
查看>>