Changeset 258897 in webkit


Ignore:
Timestamp:
Mar 23, 2020 7:05:00 PM (4 years ago)
Author:
dino@apple.com
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):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r258893 r258897  
     12020-03-23  Dean Jackson  <dino@apple.com>
     2
     3        webkitpy Git class must expose the repository URL
     4        https://bugs.webkit.org/show_bug.cgi?id=209439
     5        <rdar://problem/60792668>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Some internal tools were relying on the svn_url() method
     10        that was changed/removed in r258164. Add a replacement.
     11
     12        * Scripts/webkitpy/common/checkout/scm/git.py:
     13        (Git.svn_repository_url):
     14
    1152020-03-23  Alex Christensen  <achristensen@webkit.org>
    216
  • trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py

    r258164 r258897  
    305305        return self._field_from_git_svn_id(path, 'svn_url')
    306306
     307    def svn_repository_url(self):
     308        git_command = ['svn', 'info']
     309        status = self._run_git(git_command)
     310        match = re.search(r'^URL: (?P<url>.*)$', status, re.MULTILINE)
     311        if not match:
     312            return ""
     313        return match.group('url')
     314
    307315    def native_revision(self, path):
    308316        return self._run_git(['-C', self.find_checkout_root(path), 'log', '-1', '--pretty=format:%H'])
Note: See TracChangeset for help on using the changeset viewer.