Less verbose 'matrix changes' by default.
authorIlpo Ruotsalainen <ilpo.ruotsalainen@movial.fi>
Fri, 19 Dec 2008 09:37:43 +0000 (11:37 +0200)
committerIlpo Ruotsalainen <ilpo.ruotsalainen@movial.fi>
Fri, 19 Dec 2008 09:37:43 +0000 (11:37 +0200)
matrix/repositories.py

index fd59d3a..8f6e535 100644 (file)
@@ -194,16 +194,18 @@ class Repository(object):
                        os.close(fd)
 
        def changes(self):
-               print 'Comparing', self
+               if config.debug:
+                       print 'Comparing', self
 
                branch, remote = self.__get_branch_remote()
 
                output = git.changes(self.path, "%s/%s" % (remote, branch))
                if output:
-                       print
-                       for line in output:
-                               print ' ', line
-                       print
+                       if config.verbose:
+                               print 'Local commits in', self
+                               for line in output:
+                                       print ' ', line
+                               print
 
                        return True
                else: