Commits

abudden  committed fbc237d

Push if we're not in a checkout.

  • Participants
  • Parent commits 8d200c0

Comments (0)

Files changed (1)

File dist/make_taghighlight_release.py

     args = BZR+['ci','-m','Release build {0}'.format(r)]
     p = subprocess.Popen(args)
     (stdout,stderr) = p.communicate()
+    # Check whether this is a checkout and if not,
+    # push to the upstream branch
+    args = BZR+['info']
+    p = subprocess.Popen(args,stdout=subprocess.PIPE)
+    (stdout,stderr) = p.communicate()
+    if 'checkout of branch' not in stdout:
+        args = BZR+['push']
+        p = subprocess.Popen(args)
+        (stdout,stderr)=p.communicate()
 
 def main():
     version_file, clean = GenerateVersionInfo()