Changeset 83152 in webkit


Ignore:
Timestamp:
Apr 7, 2011 1:40:16 AM (13 years ago)
Author:
mjs@apple.com
Message:

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:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r83139 r83152  
     12011-04-07  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Adam Barth.
     4
     5        REGRESSION: "webkit-patch land" doesn't work correctly in SVN subdirectories
     6        https://bugs.webkit.org/show_bug.cgi?id=58017
     7
     8        * Scripts/webkitpy/common/checkout/scm.py:
     9        * Scripts/webkitpy/common/checkout/scm_unittest.py:
     10
    1112011-04-06  Chang Shu  <cshu@webkit.org>
    212
  • trunk/Tools/Scripts/webkitpy/common/checkout/scm.py

    r82407 r83152  
    578578            return "Dry run, no commit.\nCommitted revision 0."
    579579
    580         # FIXME: Should this use cwd=self.checkout_root?
    581         return self.run(svn_commit_args, error_handler=commit_error_handler)
     580        return self.run(svn_commit_args, cwd=self.checkout_root, error_handler=commit_error_handler)
    582581
    583582    def svn_commit_log(self, svn_revision):
  • trunk/Tools/Scripts/webkitpy/common/checkout/scm_unittest.py

    r79520 r83152  
    651651        self.assertEqual(self.scm.svn_revision_from_commit_text(commit_text), '0')
    652652
     653    def test_commit_in_subdir(self, username=None):
     654        write_into_file_at_path('test_dir/test_file3', 'more test content')
     655        os.chdir("test_dir")
     656        commit_text = self.scm.commit_with_message("another test commit", username)
     657        os.chdir("..")
     658        self.assertEqual(self.scm.svn_revision_from_commit_text(commit_text), '6')
     659
    653660    def test_commit_text_parsing(self):
    654661        self._shared_test_commit_with_message()
Note: See TracChangeset for help on using the changeset viewer.