git-gerrit 3.2.0__tar.gz → 3.3.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-3.2.0/git_gerrit.egg-info → git_gerrit-3.3.0}/PKG-INFO +3 -1
- git_gerrit-3.3.0/git_gerrit/__version__.py +1 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/git_gerrit/cli.py +4 -1
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/git_gerrit/git.py +12 -1
- {git_gerrit-3.2.0 → git_gerrit-3.3.0/git_gerrit.egg-info}/PKG-INFO +3 -1
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/setup.py +1 -0
- git_gerrit-3.2.0/git_gerrit/__version__.py +0 -1
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/LICENSE.txt +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/MANIFEST.in +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/README.rst +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/git_gerrit/__init__.py +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/git_gerrit/core.py +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/git_gerrit/db.py +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/git_gerrit/error.py +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/git_gerrit/spinner.py +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/git_gerrit.egg-info/SOURCES.txt +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/git_gerrit.egg-info/dependency_links.txt +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/git_gerrit.egg-info/entry_points.txt +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/git_gerrit.egg-info/requires.txt +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/git_gerrit.egg-info/top_level.txt +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/pyproject.toml +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/setup.cfg +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/tests/test_cli.py +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/tests/test_core.py +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/tests/test_db.py +0 -0
- {git_gerrit-3.2.0 → git_gerrit-3.3.0}/tests/test_git.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: git_gerrit
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.3.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
|
|
@@ -12,6 +12,7 @@ Classifier: Intended Audience :: Developers
|
|
|
12
12
|
Classifier: Operating System :: POSIX
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
14
|
Classifier: Topic :: Software Development
|
|
15
|
+
Description-Content-Type: text/x-rst
|
|
15
16
|
License-File: LICENSE.txt
|
|
16
17
|
Requires-Dist: sh
|
|
17
18
|
Requires-Dist: pygerrit2
|
|
@@ -19,6 +20,7 @@ Dynamic: author
|
|
|
19
20
|
Dynamic: author-email
|
|
20
21
|
Dynamic: classifier
|
|
21
22
|
Dynamic: description
|
|
23
|
+
Dynamic: description-content-type
|
|
22
24
|
Dynamic: home-page
|
|
23
25
|
Dynamic: license
|
|
24
26
|
Dynamic: license-file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = "3.3.0"
|
|
@@ -460,7 +460,10 @@ def main_git_gerrit_number(argv=None):
|
|
|
460
460
|
for p in change['cherry_picked_to']:
|
|
461
461
|
print(p or "")
|
|
462
462
|
elif args.checkout:
|
|
463
|
-
|
|
463
|
+
number = change['number']
|
|
464
|
+
patchset = change['current_patchset']
|
|
465
|
+
print(f"checking out {number},{patchset}")
|
|
466
|
+
git.checkout(change['commit_id'])
|
|
464
467
|
elif args.show:
|
|
465
468
|
print(git.git.show(change['commit_id']))
|
|
466
469
|
else:
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
import os
|
|
23
23
|
import re
|
|
24
24
|
import sh
|
|
25
|
+
import sys
|
|
25
26
|
|
|
26
27
|
import urllib.request
|
|
27
28
|
|
|
@@ -186,7 +187,17 @@ class Git:
|
|
|
186
187
|
|
|
187
188
|
def checkout(self, refname):
|
|
188
189
|
"""Run git checkout to checkout a change."""
|
|
189
|
-
|
|
190
|
+
try:
|
|
191
|
+
self.git(
|
|
192
|
+
"-c",
|
|
193
|
+
"advice.detachedHead=false",
|
|
194
|
+
"checkout",
|
|
195
|
+
refname,
|
|
196
|
+
_out=sys.stdout,
|
|
197
|
+
_err=sys.stderr,
|
|
198
|
+
)
|
|
199
|
+
except sh.ErrorReturnCode as e:
|
|
200
|
+
raise GitGerritError(f"Command failed: git checkout: {e.exit_code}")
|
|
190
201
|
|
|
191
202
|
def log(self, refname=None, **options):
|
|
192
203
|
"""Run git log to show changes."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: git_gerrit
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.3.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
|
|
@@ -12,6 +12,7 @@ Classifier: Intended Audience :: Developers
|
|
|
12
12
|
Classifier: Operating System :: POSIX
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
14
|
Classifier: Topic :: Software Development
|
|
15
|
+
Description-Content-Type: text/x-rst
|
|
15
16
|
License-File: LICENSE.txt
|
|
16
17
|
Requires-Dist: sh
|
|
17
18
|
Requires-Dist: pygerrit2
|
|
@@ -19,6 +20,7 @@ Dynamic: author
|
|
|
19
20
|
Dynamic: author-email
|
|
20
21
|
Dynamic: classifier
|
|
21
22
|
Dynamic: description
|
|
23
|
+
Dynamic: description-content-type
|
|
22
24
|
Dynamic: home-page
|
|
23
25
|
Dynamic: license
|
|
24
26
|
Dynamic: license-file
|
|
@@ -19,6 +19,7 @@ setup(
|
|
|
19
19
|
version=get_version(),
|
|
20
20
|
description='Gerrit review system command line tools.',
|
|
21
21
|
long_description=open('README.rst').read(),
|
|
22
|
+
long_description_content_type='text/x-rst',
|
|
22
23
|
author='Michael Meffie',
|
|
23
24
|
author_email='mmeffie@sinenomine.net',
|
|
24
25
|
license='BSD-2-Clause',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = "3.2.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|