Skip to content

Instantly share code, notes, and snippets.

@dcarral
Last active September 10, 2015 17:50
Show Gist options
  • Save dcarral/688be9a194b38b2c3aa4 to your computer and use it in GitHub Desktop.
Save dcarral/688be9a194b38b2c3aa4 to your computer and use it in GitHub Desktop.
Bash one-liner to close acepted code revisions through arcanist. Avoids the annoying "close-revision requires exactly one revision" warning.
#!/usr/bin/env bash
arc list | awk '/.*Accepted.*/ {print $2}' | tr -d ":" | xargs -n 1 arc close-revision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment