shift
done
-git branch -a|sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'|grep "release" > /dev/null 2>&1 || die "Please run this command under release branch"
+git branch -a|sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'|grep "release" > /dev/null 2>&1 || die "Please run this command under the release branch"
-git status|grep "modified">/dev/null 2>&1 &&echo "Warning: You local changes doesn't commit yet."
+git status|grep "modified">/dev/null 2>&1 &&echo "Warning: Uncommited local changes found. Please commit local changes before running this command."
# Get project name from git url
git_url=`git config remote.origin.url`
curl -L -k -u$user:$passwd "$HUDSON_SERVER/job/build/$build_id/consoleText" -G
die 'Remote Server Exception'
else
- echo "Your local changes has been submitted to build server."
+ echo "Your local changes have been submitted to the build server."
fi
rm package.tar.bz2
def do(opts, args):
if not os.path.isdir('.git'):
- msger.error('must run this command under a git tree')
+ msger.error('You must run this command under a git tree')
if git.branch(all=False, current=True)[0] != 'release':
- msger.error('must run this command under release branch')
+ msger.error('You must run this command under the release branch')
gitsts = git.status()
if 'M ' in gitsts or ' M' in gitsts:
params['parameter'].append({"name": tarfp,
"file": "file0"})
- msger.info("Submiting your changes to build server ...")
+ msger.info("Submiting your changes to the build server...")
ss.build_trigger(params, tarfp)
time.sleep(0.5)
msger.error('remote server exception')
os.remove(tarfp)
- msger.info('your local changes has been submitted to build server.')
+ msger.info('Your local changes have been submitted to the build server.')
{"name": "pkg", "value": tarname}
]}
- msger.info('uploading tarball %s to src server ...' % tarfp)
+ msger.info('Uploading tarball %s to the source server...' % tarfp)
ss.upload(params, tarfp)
# TODO need to check the result and get the md5sum
# TODO update sources automatically?