|
|
@ -59,8 +59,11 @@ def main():
|
|
|
|
obj = rietveld.Rietveld(options.server, '', None)
|
|
|
|
obj = rietveld.Rietveld(options.server, '', None)
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
properties = obj.get_issue_properties(options.issue, False)
|
|
|
|
properties = obj.get_issue_properties(options.issue, False)
|
|
|
|
except rietveld.upload.ClientLoginError:
|
|
|
|
except rietveld.upload.ClientLoginError, e:
|
|
|
|
# Requires login.
|
|
|
|
if sys.stdout.closed:
|
|
|
|
|
|
|
|
print >> sys.stderr, 'Accessing the issue requires login.'
|
|
|
|
|
|
|
|
return 1
|
|
|
|
|
|
|
|
print('Accessing the issue requires login.')
|
|
|
|
obj = rietveld.Rietveld(options.server, None, None)
|
|
|
|
obj = rietveld.Rietveld(options.server, None, None)
|
|
|
|
properties = obj.get_issue_properties(options.issue, False)
|
|
|
|
properties = obj.get_issue_properties(options.issue, False)
|
|
|
|
|
|
|
|
|
|
|
@ -86,7 +89,7 @@ def main():
|
|
|
|
elif scm_type == 'git':
|
|
|
|
elif scm_type == 'git':
|
|
|
|
scm_obj = checkout.GitCheckoutBase(options.root_dir, None, None)
|
|
|
|
scm_obj = checkout.GitCheckoutBase(options.root_dir, None, None)
|
|
|
|
elif scm_type == None:
|
|
|
|
elif scm_type == None:
|
|
|
|
scm_obj = checkout.RawCheckout(options.root_dir, None)
|
|
|
|
scm_obj = checkout.RawCheckout(options.root_dir, None, None)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
parser.error('Couldn\'t determine the scm')
|
|
|
|
parser.error('Couldn\'t determine the scm')
|
|
|
|
|
|
|
|
|
|
|
|