Review Board 1.7.22


Configure reviewboard url in kafka-patch-review tool

Review Request #14773 - Created Oct. 19, 2013 and submitted

Swapnil Ghike
KAFKA-1094
Reviewers
kafka
kafka
configure reviewboard

 

Diff revision 1 (Latest)

  1. kafka-patch-review.py: Loading...
kafka-patch-review.py
Revision 2653465a30a0084cbd37fa07d00e07134ef3bd7f New Change
[20] 33 lines
[+20] [+] def main():
34
  patch_file=tempfile.gettempdir() + "/" + opt.jira + ".patch"
34
  patch_file=tempfile.gettempdir() + "/" + opt.jira + ".patch"
35
  if opt.reviewboard:
35
  if opt.reviewboard:
36
    ts = time.time()
36
    ts = time.time()
37
    st = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d_%H:%M:%S')
37
    st = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d_%H:%M:%S')
38
    patch_file=tempfile.gettempdir() + "/" + opt.jira + '_' + st + '.patch'
38
    patch_file=tempfile.gettempdir() + "/" + opt.jira + '_' + st + '.patch'
39
  
39

   

    
   
40
  git_configure_reviewboard="git config reviewboard.url https://reviews.apache.org"

    
   
41
  print "Configuring reviewboard url to https://reviews.apache.org"

    
   
42
  p=os.popen(git_configure_reviewboard)

    
   
43
  p.close()

    
   
44

   
40
  git_remote_update="git remote update"
45
  git_remote_update="git remote update"
41
  print "Updating your remote branches to pull the latest changes"
46
  print "Updating your remote branches to pull the latest changes"
42
  p=os.popen(git_remote_update)
47
  p=os.popen(git_remote_update)
43
  p.close()
48
  p.close()
44

    
   
49

   
[+20] [20] 59 lines
  1. kafka-patch-review.py: Loading...