git-gerrit 2.1.0__tar.gz → 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {git_gerrit-2.1.0/git_gerrit.egg-info → git_gerrit-3.0.0}/PKG-INFO +17 -18
- {git_gerrit-2.1.0 → git_gerrit-3.0.0}/README.rst +5 -13
- git_gerrit-3.0.0/git_gerrit/__init__.py +62 -0
- git_gerrit-3.0.0/git_gerrit/__version__.py +1 -0
- {git_gerrit-2.1.0 → git_gerrit-3.0.0}/git_gerrit/cli.py +271 -150
- git_gerrit-3.0.0/git_gerrit/core.py +516 -0
- git_gerrit-3.0.0/git_gerrit/db.py +357 -0
- {git_gerrit-2.1.0 → git_gerrit-3.0.0}/git_gerrit/error.py +10 -10
- git_gerrit-3.0.0/git_gerrit/git.py +305 -0
- git_gerrit-3.0.0/git_gerrit/spinner.py +170 -0
- {git_gerrit-2.1.0 → git_gerrit-3.0.0/git_gerrit.egg-info}/PKG-INFO +17 -18
- {git_gerrit-2.1.0 → git_gerrit-3.0.0}/git_gerrit.egg-info/SOURCES.txt +10 -4
- git_gerrit-3.0.0/git_gerrit.egg-info/entry_points.txt +12 -0
- git_gerrit-3.0.0/pyproject.toml +3 -0
- {git_gerrit-2.1.0 → git_gerrit-3.0.0}/setup.py +13 -14
- git_gerrit-3.0.0/tests/test_cli.py +221 -0
- git_gerrit-3.0.0/tests/test_core.py +114 -0
- git_gerrit-3.0.0/tests/test_db.py +121 -0
- git_gerrit-3.0.0/tests/test_git.py +88 -0
- git_gerrit-2.1.0/git_gerrit/__init__.py +0 -581
- git_gerrit-2.1.0/git_gerrit/config.py +0 -62
- git_gerrit-2.1.0/git_gerrit/unicode.py +0 -74
- git_gerrit-2.1.0/git_gerrit.egg-info/entry_points.txt +0 -11
- git_gerrit-2.1.0/tests/test_api.py +0 -41
- git_gerrit-2.1.0/tests/test_cli.py +0 -55
- {git_gerrit-2.1.0 → git_gerrit-3.0.0}/LICENSE.txt +0 -0
- {git_gerrit-2.1.0 → git_gerrit-3.0.0}/MANIFEST.in +0 -0
- {git_gerrit-2.1.0 → git_gerrit-3.0.0}/git_gerrit.egg-info/dependency_links.txt +0 -0
- {git_gerrit-2.1.0 → git_gerrit-3.0.0}/git_gerrit.egg-info/requires.txt +0 -0
- {git_gerrit-2.1.0 → git_gerrit-3.0.0}/git_gerrit.egg-info/top_level.txt +0 -0
- {git_gerrit-2.1.0 → git_gerrit-3.0.0}/setup.cfg +0 -0
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: git_gerrit
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Gerrit review system command line tools.
|
|
5
5
|
Home-page: https://github.com/meffie/git-gerrit
|
|
6
6
|
Author: Michael Meffie
|
|
7
7
|
Author-email: mmeffie@sinenomine.net
|
|
8
|
-
License: BSD
|
|
8
|
+
License: BSD-2-Clause
|
|
9
9
|
Classifier: Development Status :: 4 - Beta
|
|
10
10
|
Classifier: Environment :: Console
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
13
12
|
Classifier: Operating System :: POSIX
|
|
14
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
15
13
|
Classifier: Programming Language :: Python :: 3
|
|
16
14
|
Classifier: Topic :: Software Development
|
|
17
15
|
License-File: LICENSE.txt
|
|
18
16
|
Requires-Dist: sh
|
|
19
17
|
Requires-Dist: pygerrit2
|
|
18
|
+
Dynamic: author
|
|
19
|
+
Dynamic: author-email
|
|
20
|
+
Dynamic: classifier
|
|
21
|
+
Dynamic: description
|
|
22
|
+
Dynamic: home-page
|
|
23
|
+
Dynamic: license
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
Dynamic: requires-dist
|
|
26
|
+
Dynamic: summary
|
|
20
27
|
|
|
21
28
|
git-gerrit
|
|
22
29
|
==========
|
|
@@ -27,7 +34,7 @@ with the **pygerrit2** package to access the Gerrit REST API.
|
|
|
27
34
|
|
|
28
35
|
.. _Gerrit code review system: https://www.gerritcodereview.com/
|
|
29
36
|
|
|
30
|
-
**git-gerrit** is
|
|
37
|
+
**git-gerrit** is requires Python 3.9 or later.
|
|
31
38
|
|
|
32
39
|
Commands
|
|
33
40
|
========
|
|
@@ -40,9 +47,10 @@ Commands
|
|
|
40
47
|
git gerrit-help List commands.
|
|
41
48
|
git gerrit-install-hooks Install git hooks to create gerrit change-ids.
|
|
42
49
|
git gerrit-log Show oneline log with gerrit numbers.
|
|
50
|
+
git gerrit-number Show info for a gerrit change number.
|
|
43
51
|
git gerrit-query Search gerrit.
|
|
52
|
+
git gerrit-sync Fetch all changes and update the local database.
|
|
44
53
|
git gerrit-update Update gerrits matching search terms.
|
|
45
|
-
git gerrit-unpicked Find gerrit numbers on upstream branch not cherry picked.
|
|
46
54
|
git gerrit-version Print version and exit.
|
|
47
55
|
|
|
48
56
|
Installation
|
|
@@ -124,7 +132,7 @@ Find gerrits with subjects containing the term 'debuginfo'::
|
|
|
124
132
|
|
|
125
133
|
Find the branch names of gerrits with the subject containing the term 'debuginfo'::
|
|
126
134
|
|
|
127
|
-
$ git gerrit-query --format='{branch:>20s} {
|
|
135
|
+
$ git gerrit-query --format='{branch:>20s} {number} {subject}' debuginfo
|
|
128
136
|
master 13030 redhat: Make separate debuginfo for kmods work with recent rpm
|
|
129
137
|
openafs-stable-1_6_x 13029 redhat: Create unique debuginfo packages for kmods
|
|
130
138
|
openafs-stable-1_6_x 12818 redhat: separate debuginfo package for kmod rpm
|
|
@@ -151,7 +159,7 @@ Checkout a gerrit by number::
|
|
|
151
159
|
|
|
152
160
|
Cherry-pick a gerrit onto the current branch::
|
|
153
161
|
|
|
154
|
-
$ git gerrit-fetch
|
|
162
|
+
$ git gerrit-fetch 13001 && git cherry-pick FETCH_HEAD
|
|
155
163
|
|
|
156
164
|
Show gerrit numbers in the checked out branch in the local git repo::
|
|
157
165
|
|
|
@@ -181,15 +189,6 @@ Show just the gerrit numbers and subjects in the local git repo::
|
|
|
181
189
|
12957: afs: squash empty declaration warning
|
|
182
190
|
12955: libafs: git ignore build artifacts on Solaris
|
|
183
191
|
|
|
184
|
-
Show the commits on the master branch which have not been cherry-picked on to
|
|
185
|
-
the stable branch. (Gerrits may already exists for them.)::
|
|
186
|
-
|
|
187
|
-
$ git gerrit-unpicked -u origin/master origin/openafs-stable-1_8_x
|
|
188
|
-
13656 4eeed830fa31b7b8b5487ba619acbc8d30642aaa afscp: Link against opr/roken/hcrypto
|
|
189
|
-
13659 f5f59cd8d336b153e2b762bb7afd16e6ab1b1ee2 util: serverLog using memory after free
|
|
190
|
-
13665 1210a8d6d96db2d84595d35ef81ec5d176de05e8 LINUX: Run the 'sparse' checker if available
|
|
191
|
-
...
|
|
192
|
-
|
|
193
192
|
Add reviewers to the **foobar** topic::
|
|
194
193
|
|
|
195
194
|
$ git gerrit-update --add-reviewer="ty@example.com" branch:master is:open topic:foobar
|
|
@@ -7,7 +7,7 @@ with the **pygerrit2** package to access the Gerrit REST API.
|
|
|
7
7
|
|
|
8
8
|
.. _Gerrit code review system: https://www.gerritcodereview.com/
|
|
9
9
|
|
|
10
|
-
**git-gerrit** is
|
|
10
|
+
**git-gerrit** is requires Python 3.9 or later.
|
|
11
11
|
|
|
12
12
|
Commands
|
|
13
13
|
========
|
|
@@ -20,9 +20,10 @@ Commands
|
|
|
20
20
|
git gerrit-help List commands.
|
|
21
21
|
git gerrit-install-hooks Install git hooks to create gerrit change-ids.
|
|
22
22
|
git gerrit-log Show oneline log with gerrit numbers.
|
|
23
|
+
git gerrit-number Show info for a gerrit change number.
|
|
23
24
|
git gerrit-query Search gerrit.
|
|
25
|
+
git gerrit-sync Fetch all changes and update the local database.
|
|
24
26
|
git gerrit-update Update gerrits matching search terms.
|
|
25
|
-
git gerrit-unpicked Find gerrit numbers on upstream branch not cherry picked.
|
|
26
27
|
git gerrit-version Print version and exit.
|
|
27
28
|
|
|
28
29
|
Installation
|
|
@@ -104,7 +105,7 @@ Find gerrits with subjects containing the term 'debuginfo'::
|
|
|
104
105
|
|
|
105
106
|
Find the branch names of gerrits with the subject containing the term 'debuginfo'::
|
|
106
107
|
|
|
107
|
-
$ git gerrit-query --format='{branch:>20s} {
|
|
108
|
+
$ git gerrit-query --format='{branch:>20s} {number} {subject}' debuginfo
|
|
108
109
|
master 13030 redhat: Make separate debuginfo for kmods work with recent rpm
|
|
109
110
|
openafs-stable-1_6_x 13029 redhat: Create unique debuginfo packages for kmods
|
|
110
111
|
openafs-stable-1_6_x 12818 redhat: separate debuginfo package for kmod rpm
|
|
@@ -131,7 +132,7 @@ Checkout a gerrit by number::
|
|
|
131
132
|
|
|
132
133
|
Cherry-pick a gerrit onto the current branch::
|
|
133
134
|
|
|
134
|
-
$ git gerrit-fetch
|
|
135
|
+
$ git gerrit-fetch 13001 && git cherry-pick FETCH_HEAD
|
|
135
136
|
|
|
136
137
|
Show gerrit numbers in the checked out branch in the local git repo::
|
|
137
138
|
|
|
@@ -161,15 +162,6 @@ Show just the gerrit numbers and subjects in the local git repo::
|
|
|
161
162
|
12957: afs: squash empty declaration warning
|
|
162
163
|
12955: libafs: git ignore build artifacts on Solaris
|
|
163
164
|
|
|
164
|
-
Show the commits on the master branch which have not been cherry-picked on to
|
|
165
|
-
the stable branch. (Gerrits may already exists for them.)::
|
|
166
|
-
|
|
167
|
-
$ git gerrit-unpicked -u origin/master origin/openafs-stable-1_8_x
|
|
168
|
-
13656 4eeed830fa31b7b8b5487ba619acbc8d30642aaa afscp: Link against opr/roken/hcrypto
|
|
169
|
-
13659 f5f59cd8d336b153e2b762bb7afd16e6ab1b1ee2 util: serverLog using memory after free
|
|
170
|
-
13665 1210a8d6d96db2d84595d35ef81ec5d176de05e8 LINUX: Run the 'sparse' checker if available
|
|
171
|
-
...
|
|
172
|
-
|
|
173
165
|
Add reviewers to the **foobar** topic::
|
|
174
166
|
|
|
175
167
|
$ git gerrit-update --add-reviewer="ty@example.com" branch:master is:open topic:foobar
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Copyright (c) 2018-2024 Sine Nomine Associates
|
|
2
|
+
#
|
|
3
|
+
# Redistribution and use in source and binary forms, with or without
|
|
4
|
+
# modification, are permitted provided that the following conditions are met:
|
|
5
|
+
#
|
|
6
|
+
# 1. Redistributions of source code must retain the above copyright notice, this
|
|
7
|
+
# list of conditions and the following disclaimer.
|
|
8
|
+
#
|
|
9
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
10
|
+
# this list of conditions and the following disclaimer in the documentation
|
|
11
|
+
# and/or other materials provided with the distribution.
|
|
12
|
+
#
|
|
13
|
+
# THE SOFTWARE IS PROVIDED 'AS IS' AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
14
|
+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
15
|
+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
16
|
+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
17
|
+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
18
|
+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
19
|
+
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
+
|
|
21
|
+
"""
|
|
22
|
+
Git helpers for the Gerrit code review system, with an emphasis on the Gerrit
|
|
23
|
+
old-style numeric identifiers.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
from git_gerrit.__version__ import VERSION
|
|
27
|
+
from git_gerrit.git import Git
|
|
28
|
+
from git_gerrit.error import (
|
|
29
|
+
GitGerritError,
|
|
30
|
+
GitGerritConfigError,
|
|
31
|
+
GitGerritFormatError,
|
|
32
|
+
GitGerritNotFoundError,
|
|
33
|
+
)
|
|
34
|
+
from git_gerrit.core import (
|
|
35
|
+
CHANGE_FIELDS,
|
|
36
|
+
LOG_FIELDS,
|
|
37
|
+
cherry_pick,
|
|
38
|
+
fetch,
|
|
39
|
+
get_current_change,
|
|
40
|
+
log,
|
|
41
|
+
query,
|
|
42
|
+
sync,
|
|
43
|
+
update,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
_hush_linter = [
|
|
47
|
+
VERSION,
|
|
48
|
+
CHANGE_FIELDS,
|
|
49
|
+
LOG_FIELDS,
|
|
50
|
+
Git,
|
|
51
|
+
GitGerritError,
|
|
52
|
+
GitGerritConfigError,
|
|
53
|
+
GitGerritFormatError,
|
|
54
|
+
GitGerritNotFoundError,
|
|
55
|
+
cherry_pick,
|
|
56
|
+
fetch,
|
|
57
|
+
get_current_change,
|
|
58
|
+
log,
|
|
59
|
+
query,
|
|
60
|
+
sync,
|
|
61
|
+
update,
|
|
62
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = "3.0.0"
|