开发者

svn: any way to efficiently list which properties have changed

svn diff doesn't seem to have a way to just list the property names (not values) that have changed. Is 开发者_开发知识库there a way to do this?


svn diff itself seems not to have an option to allow that. So you could add a filter, to only list changes with a special format (depending on the OS you are using easy or no). In Ruby, I would match like that:

/(Property .*\n_+\n(.*\n)+)\n\n)/

Reads like that:

  • Starts with Property to the end of line.
  • Then full line with ______.
  • Then anything, up to 2 line breaks.

An example could be:

Property changes on: summary.xls\n
___________________________________________________________________\n
Modified: svn:mime-type\n
   - application/octet-stream\n
   + application/excel\n
Added: svn:needs-ok\n
   + *\n
\n
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜