if not os.path.isfile(base):
raise CmdException, 'Branch "%s" is not controlled by StGit' % branch
- print 'Protecting branch "%s"...' % branch
+ print 'Protecting branch "%s"...' % branch,
+ sys.stdout.flush()
stack.Series(branch).protect()
+ print 'done'
+
return
elif options.rename:
if not os.path.isfile(base):
raise CmdException, 'Branch "%s" is not controlled by StGit' % branch
- print 'Unprotecting branch "%s"...' % branch
+ print 'Unprotecting branch "%s"...' % branch,
+ sys.stdout.flush()
stack.Series(branch).unprotect()
+ print 'done'
+
return
elif len(args) == 1: