[Webkit-unassigned] [Bug 131415] Improve support for SVN statuses in scm.py
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 22 01:40:12 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=131415
Ryosuke Niwa <rniwa at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #231854|review? |review-
Flag| |
--- Comment #4 from Ryosuke Niwa <rniwa at webkit.org> 2014-05-22 01:40:34 PST ---
(From update of attachment 231854)
View in context: https://bugs.webkit.org/attachment.cgi?id=231854&action=review
> Tools/Scripts/webkitpy/common/checkout/scm/status.py:6
> + self.file_statuses = [FileStatus(line, checkout_root) for line in text.split("\n") if line]
We usually prefix private variables with _.
> Tools/Scripts/webkitpy/common/checkout/scm/status.py:45
> +class FileStatus(object):
FileStatus is an extremely generic name. Please give it a more descriptive name.
> Tools/Scripts/webkitpy/common/checkout/scm/status.py:73
> + # Status convenience methods
Can't we use __getattr__ to implement these instead?
> Tools/Scripts/webkitpy/common/checkout/scm/status.py:175
> +class Code(object):
Code is an extremely generic class name. Please give it a more descriptive name.
> Tools/Scripts/webkitpy/common/checkout/scm/status.py:194
> +ItemReplaced = Code(1, "R", "Item has been replaced in your working "
> + "copy. This means the file was scheduled "
> + "for deletion, and then a new file with "
> + "the same name was scheduled for addition "
> + "in its place.")
We don't align text line this with indentations. Please indent each line with exactly 4 spaces.
Also, these descriptions are split into so many lines. We can probably fit this into much fewer lines.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list