Fix the branch protect/unprotect message
authorCatalin Marinas <catalin.marinas@gmail.com>
Mon, 17 Oct 2005 14:50:19 +0000 (15:50 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 17 Oct 2005 14:50:19 +0000 (15:50 +0100)
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/commands/branch.py

index 56a5fe6..c731a69 100644 (file)
@@ -161,8 +161,11 @@ def func(parser, options, args):
         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:
@@ -185,8 +188,11 @@ def func(parser, options, args):
         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: