The current git-svnrevert script only works with git-svn repos (e.g. using "git svn find-rev" to find the commit to revert). This adds a similar implementation that works with the llvm git command handler.
Usage:
// Revert by svn id $ git llvm revert r123456 // Forgetting the 'r' is fine $ git llvm revert 123456 // Git commit hash also fine $ git llvm revert abc123456 // Push revert upstream (drop the -n) $ git llvm push -n
Regardless of how the command is invoked (with a svn revision or git hash), the message is:
Revert [LibFoo] Change Foo implementation This reverts r123456 (git commit abc123)
Nit, perhaps we should use the idiom from https://stackoverflow.com/a/1070756