def test_convert_to_svn_and_strip_change_log(self): # These patches require trailing whitespace to remain valid patches. testbefore1 = HasLanded.convert_to_svn("""\ diff --git a/Tools/ChangeLog b/Tools/ChangeLog index 219ba72..0390b73 100644 --- a/Tools/ChangeLog +++ b/Tools/ChangeLog @@ -1,3 +1,32 @@ +2013-01-17 Tim 'mithro' Ansell <*****@*****.**> + + Adding "has-landed" command to webkit-patch which allows a person to + Reviewed by NOBODY (OOPS!). + 2013-01-20 Tim 'mithro' Ansell <*****@*****.**> Extend diff_parser to support the --full-index output. diff --git a/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py b/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py index 4bf8ec6..3a128cb 100644 --- a/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py +++ b/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py @@ -28,6 +28,8 @@ +import re + from .attachment import Attachment """) testafter1 = HasLanded.convert_to_svn("""\ diff --git a/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py b/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py index 4bf8ec6..3a128cb 100644 --- a/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py +++ b/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py @@ -28,6 +28,8 @@ +import re + from .attachment import Attachment diff --git a/Tools/ChangeLog b/Tools/ChangeLog index 219ba72..0390b73 100644 --- a/Tools/ChangeLog +++ b/Tools/ChangeLog @@ -1,3 +1,32 @@ +2013-01-17 Tim 'mithro' Ansell <*****@*****.**> + + Adding "has-landed" command to webkit-patch which allows a person to + Reviewed by NOBODY (OOPS!). + 2013-01-20 Tim 'mithro' Ansell <*****@*****.**> Extend diff_parser to support the --full-index output. """) testexpected1 = """\ Index: Tools/Scripts/webkitpy/common/net/bugzilla/bug.py =================================================================== --- Tools/Scripts/webkitpy/common/net/bugzilla/bug.py +++ Tools/Scripts/webkitpy/common/net/bugzilla/bug.py @@ -28,6 +28,8 @@ +import re + from .attachment import Attachment """ testmiddle1 = HasLanded.convert_to_svn("""\ diff --git a/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py b/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py index 4bf8ec6..3a128cb 100644 --- a/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py +++ b/Tools/Scripts/webkitpy/common/net/bugzilla/bug.py @@ -28,6 +28,8 @@ +import re + from .attachment import Attachment diff --git a/ChangeLog b/ChangeLog index 219ba72..0390b73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,32 @@ +2013-01-17 Tim 'mithro' Ansell <*****@*****.**> + + Adding "has-landed" command to webkit-patch which allows a person to + Reviewed by NOBODY (OOPS!). + 2013-01-20 Tim 'mithro' Ansell <*****@*****.**> Extend diff_parser to support the --full-index output. diff --git a/Tools/Scripts/webkitpy/common/other.py b/Tools/Scripts/webkitpy/common/other.py index 4bf8ec6..3a128cb 100644 --- a/Tools/Scripts/webkitpy/common/other.py +++ b/Tools/Scripts/webkitpy/common/other.py @@ -28,6 +28,8 @@ +import re + from .attachment import Attachment """) testexpected2 = """\ Index: Tools/Scripts/webkitpy/common/net/bugzilla/bug.py =================================================================== --- Tools/Scripts/webkitpy/common/net/bugzilla/bug.py +++ Tools/Scripts/webkitpy/common/net/bugzilla/bug.py @@ -28,6 +28,8 @@ +import re + from .attachment import Attachment Index: Tools/Scripts/webkitpy/common/other.py =================================================================== --- Tools/Scripts/webkitpy/common/other.py +++ Tools/Scripts/webkitpy/common/other.py @@ -28,6 +28,8 @@ +import re + from .attachment import Attachment """ self.assertMultiLineEqual(testexpected1, HasLanded.strip_change_log(testbefore1)) self.assertMultiLineEqual(testexpected1, HasLanded.strip_change_log(testafter1)) self.assertMultiLineEqual(testexpected2, HasLanded.strip_change_log(testmiddle1))