Title: [194499] trunk/Tools
- Revision
- 194499
- Author
- [email protected]
- Date
- 2016-01-02 04:19:55 -0800 (Sat, 02 Jan 2016)
Log Message
Python SCM should be able to retrieve untracked files - Add SVN support
https://bugs.webkit.org/show_bug.cgi?id=152546
Reviewed by Michael Catanzaro.
* Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
(test_untracked_files): Activating test for SVN.
* Scripts/webkitpy/common/checkout/scm/svn.py:
(SVN.untracked_files): Implementing untracked files retrieval for SVN.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (194498 => 194499)
--- trunk/Tools/ChangeLog 2016-01-02 09:39:56 UTC (rev 194498)
+++ trunk/Tools/ChangeLog 2016-01-02 12:19:55 UTC (rev 194499)
@@ -1,3 +1,15 @@
+2016-01-02 Youenn Fablet <[email protected]>
+
+ Python SCM should be able to retrieve untracked files - Add SVN support
+ https://bugs.webkit.org/show_bug.cgi?id=152546
+
+ Reviewed by Michael Catanzaro.
+
+ * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
+ (test_untracked_files): Activating test for SVN.
+ * Scripts/webkitpy/common/checkout/scm/svn.py:
+ (SVN.untracked_files): Implementing untracked files retrieval for SVN.
+
2015-12-31 Andy Estes <[email protected]>
Replace WTF::move with WTFMove
Modified: trunk/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py (194498 => 194499)
--- trunk/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py 2016-01-02 09:39:56 UTC (rev 194498)
+++ trunk/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py 2016-01-02 12:19:55 UTC (rev 194499)
@@ -829,6 +829,9 @@
def test_changed_files(self):
self._shared_test_changed_files()
+ def test_untracked_files(self):
+ self._shared_test_untracked_files(self.scm)
+
def test_changed_files_for_revision(self):
self._shared_test_changed_files_for_revision()
Modified: trunk/Tools/Scripts/webkitpy/common/checkout/scm/svn.py (194498 => 194499)
--- trunk/Tools/Scripts/webkitpy/common/checkout/scm/svn.py 2016-01-02 09:39:56 UTC (rev 194498)
+++ trunk/Tools/Scripts/webkitpy/common/checkout/scm/svn.py 2016-01-02 12:19:55 UTC (rev 194499)
@@ -144,6 +144,13 @@
# FIXME: What about files which are not committed yet?
return self._run_svn(["diff"], cwd=self.checkout_root, decode_output=False) != ""
+ def untracked_files(self, include_ignored_files=False):
+ status_command = [self.executable_name, "status"]
+ if include_ignored_files:
+ status_command.append("--no-ignore")
+ status_command.extend(self._patch_directories)
+ return self.run_status_and_extract_filenames(status_command, self._status_regexp("I?"))
+
def discard_working_directory_changes(self):
# Make sure there are no locks lying around from a previously aborted svn invocation.
# This is slightly dangerous, as it's possible the user is running another svn process
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes