[PATCH] Use the first line of commit message in "log --line"

Matthieu Moy Matthieu.Moy at imag.fr
Tue Jun 6 11:20:15 BST 2006


John Arbash Meinel <john at arbash-meinel.com> writes:

> If you only have one line of comment, then the closing """ should be on
> the same line.
>
>     def get_summary(self):
>         """Get the first line of the log message for this revision."""

Then,

=== modified file 'bzrlib/revision.py'
--- bzrlib/revision.py
+++ bzrlib/revision.py
@@ -73,8 +73,7 @@
         return not self.__eq__(other)
 
     def _check_properties(self):
-        """Verify that all revision properties are OK.
-        """
+        """Verify that all revision properties are OK."""
         for name, value in self.properties.iteritems():
             if not isinstance(name, basestring) or
             contains_whitespace(name):
                 raise ValueError("invalid property name %r" % name)




(I just did the same as what I saw on the other function ;-) )

(isn't there a lint tool able to check this kind of things ?)

Thanks,

-- 
Matthieu




More information about the bazaar mailing list