Title: [258897] trunk/Tools
- Revision
- 258897
- Author
- [email protected]
- Date
- 2020-03-23 19:05:00 -0700 (Mon, 23 Mar 2020)
Log Message
webkitpy Git class must expose the repository URL
https://bugs.webkit.org/show_bug.cgi?id=209439
<rdar://problem/60792668>
Reviewed by Simon Fraser.
Some internal tools were relying on the svn_url() method
that was changed/removed in r258164. Add a replacement.
* Scripts/webkitpy/common/checkout/scm/git.py:
(Git.svn_repository_url):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (258896 => 258897)
--- trunk/Tools/ChangeLog 2020-03-24 01:56:56 UTC (rev 258896)
+++ trunk/Tools/ChangeLog 2020-03-24 02:05:00 UTC (rev 258897)
@@ -1,3 +1,17 @@
+2020-03-23 Dean Jackson <[email protected]>
+
+ webkitpy Git class must expose the repository URL
+ https://bugs.webkit.org/show_bug.cgi?id=209439
+ <rdar://problem/60792668>
+
+ Reviewed by Simon Fraser.
+
+ Some internal tools were relying on the svn_url() method
+ that was changed/removed in r258164. Add a replacement.
+
+ * Scripts/webkitpy/common/checkout/scm/git.py:
+ (Git.svn_repository_url):
+
2020-03-23 Alex Christensen <[email protected]>
Fix memory leak introduced in r257726
Modified: trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py (258896 => 258897)
--- trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py 2020-03-24 01:56:56 UTC (rev 258896)
+++ trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py 2020-03-24 02:05:00 UTC (rev 258897)
@@ -304,6 +304,14 @@
def svn_url(self, path):
return self._field_from_git_svn_id(path, 'svn_url')
+ def svn_repository_url(self):
+ git_command = ['svn', 'info']
+ status = self._run_git(git_command)
+ match = re.search(r'^URL: (?P<url>.*)$', status, re.MULTILINE)
+ if not match:
+ return ""
+ return match.group('url')
+
def native_revision(self, path):
return self._run_git(['-C', self.find_checkout_root(path), 'log', '-1', '--pretty=format:%H'])
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes