]> projects.mako.cc - mw/commitdiff
make commit terse as well
authorJoseph Reagle <joseph.2008@reagle.org>
Thu, 10 Feb 2011 18:26:52 +0000 (13:26 -0500)
committerJoseph Reagle <joseph.2008@reagle.org>
Thu, 10 Feb 2011 18:26:52 +0000 (13:26 -0500)
src/mw/clicommands.py

index cc6e6efdf2050739d80a6e427773c4ea9f7cb67c..1d0c46d9f7fca08290ef1ea7b39d2169f5053b98 100644 (file)
@@ -320,8 +320,8 @@ class CommitCommand(CommandBase):
         files_to_commit = 0 # how many files to process
         status = self.metadir.working_dir_status(files=self.args)
         for filename in status:
         files_to_commit = 0 # how many files to process
         status = self.metadir.working_dir_status(files=self.args)
         for filename in status:
-            print '%s %s' % (status[filename], filename)
             if status[filename] in ['M']:
             if status[filename] in ['M']:
+                print '%s %s' % (status[filename], filename)
                 files_to_commit += 1
         if not files_to_commit:
             print 'nothing to commit'
                 files_to_commit += 1
         if not files_to_commit:
             print 'nothing to commit'

Benjamin Mako Hill || Want to submit a patch?