开发者

How to get a list of uncommited files on svn

We are currently editing code under svn directly on a shared folder (our test server). As we can push files directly fr开发者_开发百科om test to prod, it is quite easy to 'forget' to commit files under SVN...

In order to avoid bad surprises and having svn completely out of sync, I'd like to generate a report of uncommited files (with the name of the person who changed it last) so I can send a weekly reminder about commiting changes.

I have found a couple of tools like statsvn in order to generate reports, but it only provides very technical details (number of lines added...).

Does anyone here have ever done that? How would you approach it?

Thanks in advance


I'm not sure I understand what you want to do, but 'svn status' gives you the list of modified files. ( see http://svnbook.red-bean.com/en/1.0/re26.html ). It's quite hard to give you a way to list the last person who changed the files without more information about your setup (filesystem, os, etc).

However, I doubt the workflow you're using is really secure. Why don't all the developers have their own checkout of the SVN repository ? It seems to me that using a shared folder is really a bad idea and can lead to many problems.


Doesn't really answer your precise question, but continuous integration (checking that the project builds and run tests at each commit) will help you, as automatic checks at each commit will fail if a file was not committed


Just grep the output of svn stat, for example:

$ svn stat|grep "^\?"
?       doc
?       gcc/firmware.bin
?       gcc/mc.bin
?       gcc/mc.elf
?       gcc/platform.c
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜