Commit e6fe1ca4 authored by mjs@apple.com's avatar mjs@apple.com

2011-04-07 Maciej Stachowiak <mjs@apple.com>

        Reviewed by Adam Barth.

        REGRESSION: "webkit-patch land" doesn't work correctly in SVN subdirectories
        https://bugs.webkit.org/show_bug.cgi?id=58017

        * Scripts/webkitpy/common/checkout/scm.py:
        * Scripts/webkitpy/common/checkout/scm_unittest.py:


git-svn-id: svn://svn.chromium.org/blink/trunk@83152 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent ab3e9b7f
2011-04-07 Maciej Stachowiak <mjs@apple.com>
Reviewed by Adam Barth.
REGRESSION: "webkit-patch land" doesn't work correctly in SVN subdirectories
https://bugs.webkit.org/show_bug.cgi?id=58017
* Scripts/webkitpy/common/checkout/scm.py:
* Scripts/webkitpy/common/checkout/scm_unittest.py:
2011-04-06 Chang Shu <cshu@webkit.org> 2011-04-06 Chang Shu <cshu@webkit.org>
Reviewed by Darin Adler. Reviewed by Darin Adler.
......
...@@ -577,8 +577,7 @@ class SVN(SCM): ...@@ -577,8 +577,7 @@ class SVN(SCM):
# Return a string which looks like a commit so that things which parse this output will succeed. # Return a string which looks like a commit so that things which parse this output will succeed.
return "Dry run, no commit.\nCommitted revision 0." return "Dry run, no commit.\nCommitted revision 0."
# FIXME: Should this use cwd=self.checkout_root? return self.run(svn_commit_args, cwd=self.checkout_root, error_handler=commit_error_handler)
return self.run(svn_commit_args, error_handler=commit_error_handler)
def svn_commit_log(self, svn_revision): def svn_commit_log(self, svn_revision):
svn_revision = self.strip_r_from_svn_revision(svn_revision) svn_revision = self.strip_r_from_svn_revision(svn_revision)
......
...@@ -650,6 +650,13 @@ Q1dTBx0AAAB42itg4GlgYJjGwMDDyODMxMDw34GBgQEAJPQDJA== ...@@ -650,6 +650,13 @@ Q1dTBx0AAAB42itg4GlgYJjGwMDDyODMxMDw34GBgQEAJPQDJA==
commit_text = self.scm.commit_with_message("yet another test commit", username) commit_text = self.scm.commit_with_message("yet another test commit", username)
self.assertEqual(self.scm.svn_revision_from_commit_text(commit_text), '0') self.assertEqual(self.scm.svn_revision_from_commit_text(commit_text), '0')
def test_commit_in_subdir(self, username=None):
write_into_file_at_path('test_dir/test_file3', 'more test content')
os.chdir("test_dir")
commit_text = self.scm.commit_with_message("another test commit", username)
os.chdir("..")
self.assertEqual(self.scm.svn_revision_from_commit_text(commit_text), '6')
def test_commit_text_parsing(self): def test_commit_text_parsing(self):
self._shared_test_commit_with_message() self._shared_test_commit_with_message()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment