⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 287859 in webkit


Ignore:
Timestamp:
Jan 10, 2022, 2:36:41 PM (5 years ago)
Author:
Jonathan Bedard
Message:

[git-webkit] Retain old commits in pull-request (Follow-up fix)
https://bugs.webkit.org/show_bug.cgi?id=234453
<rdar://problem/86654956>

Unreviewed follow-up fix.

  • Scripts/libraries/webkitscmpy/webkitscmpy/program/land.py:

(Land.main):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r287857 r287859  
     12022-01-10  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [git-webkit] Retain old commits in pull-request (Follow-up fix)
     4        https://bugs.webkit.org/show_bug.cgi?id=234453
     5        <rdar://problem/86654956>
     6
     7        Unreviewed follow-up fix.
     8
     9        * Scripts/libraries/webkitscmpy/webkitscmpy/program/land.py:
     10        (Land.main):
     11
    1122022-01-05  Jonathan Bedard  <jbedard@apple.com>
    213
  • trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/land.py

    r287853 r287859  
    233233
    234234        if args.defaults or Terminal.choose("Delete branch '{}'?".format(source_branch), default='Yes') == 'Yes':
    235             regex = re.compile(r'^{}-(?P<count>\d+)$'.format(repository.branch))
    236             for to_delete in repository.branches_for(remote='fork'):
    237                 if to_delete == source_branch or regex.match(to_delete):
     235            regex = re.compile(r'^{}-(?P<count>\d+)$'.format(source_branch))
     236            for to_delete in repository.branches_for(remote=remote_target):
     237                if to_delete == source_branch or regex.match(to_delete) and remote_target == 'fork':
    238238                    run([repository.executable(), 'branch', '-D', to_delete], cwd=repository.root_path)
    239239                    run([repository.executable(), 'push', remote_target, '--delete', to_delete], cwd=repository.root_path)
Note: See TracChangeset for help on using the changeset viewer.