Advertisement
Shnatsel

List Launchpad branches owned by a specific team

Feb 2nd, 2013
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. echo 'from launchpadlib.launchpad import Launchpad
  4. launchpad = Launchpad.login_anonymously("elementary-install-from-bzr", "production")
  5. team = launchpad.people["'"$1"'"]
  6. for branch in team.getBranches():
  7.    print branch' | python2 - | sed 's|https://api.launchpad.net/1.0/|lp:|g'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement