Changeset 292890 in webkit
- Timestamp:
- Apr 14, 2022, 2:15:31 PM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 6 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/libraries/webkitscmpy/setup.py (modified) (1 diff)
-
Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py (modified) (1 diff)
-
Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py (modified) (1 diff)
-
Scripts/libraries/webkitscmpy/webkitscmpy/program/branch.py (modified) (1 diff)
-
Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r292888 r292890 1 2022-04-14 Jonathan Bedard <jbedard@apple.com> 2 3 [git-webkit] Personal branch is "not a PR branch" 4 https://bugs.webkit.org/show_bug.cgi?id=239329 5 <rdar://problem/91756286> 6 7 Reviewed by Yusuke Suzuki. 8 9 * Scripts/libraries/webkitscmpy/setup.py: Bump version. 10 * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto. 11 * Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py: 12 (Git.branches_for): Provide optional caching. 13 * Scripts/libraries/webkitscmpy/webkitscmpy/program/branch.py: 14 (Branch.editable): If a branch does not exist on production remotes, that branch 15 should also be considered a PR branch. 16 * Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py: 17 (PullRequest.main): Only create a new PR branch if the current branch is a 18 production branch. 19 1 20 2022-04-14 Wenson Hsieh <wenson_hsieh@apple.com> 2 21 -
trunk/Tools/Scripts/libraries/webkitscmpy/setup.py
r292844 r292890 30 30 setup( 31 31 name='webkitscmpy', 32 version='4.9. 2',32 version='4.9.3', 33 33 description='Library designed to interact with git and svn repositories.', 34 34 long_description=readme(), -
trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py
r292844 r292890 47 47 ) 48 48 49 version = Version(4, 9, 2)49 version = Version(4, 9, 3) 50 50 51 51 AutoInstall.register(Package('fasteners', Version(0, 15, 0))) -
trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py
r292844 r292890 506 506 return int(revision_count.stdout) 507 507 508 @decorators.Memoize(cached=False) 508 509 def branches_for(self, hash=None, remote=True): 509 510 branch = run( -
trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/branch.py
r290748 r292890 55 55 if (repository or local.Scm).DEV_BRANCHES.match(branch): 56 56 return True 57 return False 57 if branch in (repository or local.Scm).DEFAULT_BRANCHES: 58 return False 59 if (repository or local.Scm).PROD_BRANCHES.match(branch): 60 return False 61 if not repository or not isinstance(repository, local.Git): 62 return False 63 64 # FIXME: Need to consider alternate remotes 65 for remote in ['origin']: 66 if branch in repository.branches_for(remote=remote, cached=True): 67 return False 68 return True 58 69 59 70 @classmethod -
trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py
r292538 r292890 137 137 return 1 138 138 139 if not repository.DEV_BRANCHES.match(repository.branch):139 if repository.branch in repository.DEFAULT_BRANCHES or repository.PROD_BRANCHES.match(repository.branch): 140 140 if Branch.main(args, repository, why="'{}' is not a pull request branch".format(repository.branch), **kwargs): 141 141 sys.stderr.write("Abandoning pushing pull-request because '{}' could not be created\n".format(args.issue))
Note:
See TracChangeset
for help on using the changeset viewer.