Guest User

Untitled

a guest
Jan 24th, 2016
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from bitbucket.bitbucket import Bitbucket
  2. from sys import argv
  3.  
  4. USERNAME = 'something'
  5. PASSWORD = 'somethingmore'
  6. prompt = '> '
  7.  
  8. print "Enter the name of branch you need to clone: "
  9. user_branch = raw_input(prompt)
  10.  
  11. print "You Entered: ",user_branch
  12.  
  13. bb = Bitbucket(USERNAME, PASSWORD, 'nishant-fork-playbooks')
  14. success, result = bb.repository.get()
  15. print success, result
  16. print "-------------------------------------------------------------"
  17. success_tags, result_tags = bb.get_tags()
  18. print success_tags, result_tags
  19.  
  20. print "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
  21. success_branch, result_branch = bb.get_branches()
  22. print success_branch, result_branch
RAW Paste Data