开发者

Plugin for svn that extract text from sources

I don't know if a plugin like that exists but for me will be useful. I'd li开发者_JS百科ke a plugin that can extract some text (defined in some way similar to Doxygen) and insert this text into description when a commit is made.

With this plugin, I could document the changes of a source file into the source file and then, the plugin would merge all changes into the description text.

Do exists this plugin?

Thanks


If you are running in a bash environment, you can achieve that functionality with:

svn stat | cut -c 9- | xargs -L 1 grep -H "TOKEN" >> comment_file.txt
svn ci -F comment_file.txt

You determine what "TOKEN" will be used to tag your documentation lines. The only issue will be cumulative comments unless you use a unique token for each commit.


As Amardeep said, you can do whatever you like in a script around the svn call. Unfortunately, you can not modify the comments, file attributes, etc., in server hooks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜