12 April 2011

Post SVN changelist to ReviewBoard (using post-review tool)

Yeah, this will work out of the box only for Unix systems. But I have no worries about that :)
$ svn stat --changelist "changelist name" | tail -n +3 | awk '{print $NF}' | grep -v 'gwt\.xml$' | xargs post-review -o
Here I post for review changelist named "changelist name" excluding GWT module descriptor files (*.gwt.xml), which a not to be commited and opens browser window with newly created review request.
As for locally modified files that are under SVN control, I usually move those that shouldn't be commit to separate changelist (named "no-commit"). Yes, I'm delighted with changelists support in IntelliJ IDEA! :)
Post a Comment