Commits

Steve Borho committed ef9fb31

workbench: pushes new branch without failing if --pushafter set (fixes #1986)

Patch submitted by Ian Kemp (ian.kemp@krs.co.za)

Comments (0)

Files changed (1)

tortoisehg/hgqt/commit.py

 
         if self.opts.get('pushafter'):
             cmd = ['push', '--repository', repo.root, self.opts['pushafter']]
+            if newbranch:
+                cmd.append('--new-branch')
             commandlines.append(cmd)
 
         repo.incrementBusyCount()