mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-01-14 16:14:25 +00:00
Merge branch 'main' of https://gerrit.googlesource.com/git-repo
Change-Id: Ibcbb2832590fe83123aac3a9c40b31af23f987a2
This commit is contained in:
commit
a8e3f95dcb
4
error.py
4
error.py
@ -13,10 +13,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
# URL to file bug reports for repo tool issues.
|
|
||||||
BUG_REPORT_URL = 'https://bugs.chromium.org/p/gerrit/issues/entry?template=Repo+tool+issue'
|
|
||||||
|
|
||||||
|
|
||||||
class ManifestParseError(Exception):
|
class ManifestParseError(Exception):
|
||||||
"""Failed to parse the manifest file.
|
"""Failed to parse the manifest file.
|
||||||
"""
|
"""
|
||||||
|
@ -28,13 +28,11 @@ import sys
|
|||||||
|
|
||||||
from git_command import GitCommand
|
from git_command import GitCommand
|
||||||
from git_refs import R_HEADS
|
from git_refs import R_HEADS
|
||||||
|
from wrapper import Wrapper
|
||||||
|
|
||||||
_SUPERPROJECT_GIT_NAME = 'superproject.git'
|
_SUPERPROJECT_GIT_NAME = 'superproject.git'
|
||||||
_SUPERPROJECT_MANIFEST_NAME = 'superproject_override.xml'
|
_SUPERPROJECT_MANIFEST_NAME = 'superproject_override.xml'
|
||||||
|
|
||||||
# URL to file bug reports for Google specific repo tool issues.
|
|
||||||
_BUG_REPORT_GOOGLE_URL = 'go/repo-bug'
|
|
||||||
|
|
||||||
|
|
||||||
class Superproject(object):
|
class Superproject(object):
|
||||||
"""Get commit ids from superproject.
|
"""Get commit ids from superproject.
|
||||||
@ -277,7 +275,7 @@ class Superproject(object):
|
|||||||
# TODO(rtenneti): Come up with a solution to support non-google URL for
|
# TODO(rtenneti): Come up with a solution to support non-google URL for
|
||||||
# filing bug reports.
|
# filing bug reports.
|
||||||
print('error: please file a bug using %s to report missing commit_ids for: %s' %
|
print('error: please file a bug using %s to report missing commit_ids for: %s' %
|
||||||
(_BUG_REPORT_GOOGLE_URL, projects_missing_commit_ids), file=sys.stderr)
|
(Wrapper().BUG_URL_GOOGLE, projects_missing_commit_ids), file=sys.stderr)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
manifest_path = self._WriteManfiestFile()
|
manifest_path = self._WriteManfiestFile()
|
||||||
|
7
repo
7
repo
@ -145,6 +145,11 @@ if not REPO_URL:
|
|||||||
REPO_REV = os.environ.get('REPO_REV')
|
REPO_REV = os.environ.get('REPO_REV')
|
||||||
if not REPO_REV:
|
if not REPO_REV:
|
||||||
REPO_REV = 'stable'
|
REPO_REV = 'stable'
|
||||||
|
# URL to file bug reports for repo tool issues.
|
||||||
|
BUG_URL = 'https://bugs.chromium.org/p/gerrit/issues/entry?template=Repo+tool+issue'
|
||||||
|
|
||||||
|
# URL to file bug reports for Google specific repo tool issues.
|
||||||
|
BUG_URL_GOOGLE = 'go/repo-bug'
|
||||||
|
|
||||||
# increment this whenever we make important changes to this script
|
# increment this whenever we make important changes to this script
|
||||||
VERSION = (2, 14)
|
VERSION = (2, 14)
|
||||||
@ -1171,6 +1176,7 @@ The most commonly used repo commands are:
|
|||||||
|
|
||||||
For access to the full online help, install repo ("repo init").
|
For access to the full online help, install repo ("repo init").
|
||||||
""")
|
""")
|
||||||
|
print('Bug reports:', BUG_URL)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
@ -1204,6 +1210,7 @@ def _Version():
|
|||||||
print('OS %s %s (%s)' % (uname.system, uname.release, uname.version))
|
print('OS %s %s (%s)' % (uname.system, uname.release, uname.version))
|
||||||
print('CPU %s (%s)' %
|
print('CPU %s (%s)' %
|
||||||
(uname.machine, uname.processor if uname.processor else 'unknown'))
|
(uname.machine, uname.processor if uname.processor else 'unknown'))
|
||||||
|
print('Bug reports:', BUG_URL)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ from subcmds import all_commands
|
|||||||
from color import Coloring
|
from color import Coloring
|
||||||
from command import PagedCommand, MirrorSafeCommand, GitcAvailableCommand, GitcClientCommand
|
from command import PagedCommand, MirrorSafeCommand, GitcAvailableCommand, GitcClientCommand
|
||||||
import gitc_utils
|
import gitc_utils
|
||||||
|
from wrapper import Wrapper
|
||||||
|
|
||||||
|
|
||||||
class Help(PagedCommand, MirrorSafeCommand):
|
class Help(PagedCommand, MirrorSafeCommand):
|
||||||
@ -78,6 +79,7 @@ Displays detailed usage information about a command.
|
|||||||
print(
|
print(
|
||||||
"See 'repo help <command>' for more information on a specific command.\n"
|
"See 'repo help <command>' for more information on a specific command.\n"
|
||||||
"See 'repo help --all' for a complete list of recognized commands.")
|
"See 'repo help --all' for a complete list of recognized commands.")
|
||||||
|
print('Bug reports:', Wrapper().BUG_URL)
|
||||||
|
|
||||||
def _PrintCommandHelp(self, cmd, header_prefix=''):
|
def _PrintCommandHelp(self, cmd, header_prefix=''):
|
||||||
class _Out(Coloring):
|
class _Out(Coloring):
|
||||||
|
@ -18,6 +18,7 @@ import sys
|
|||||||
from command import Command, MirrorSafeCommand
|
from command import Command, MirrorSafeCommand
|
||||||
from git_command import git, RepoSourceVersion, user_agent
|
from git_command import git, RepoSourceVersion, user_agent
|
||||||
from git_refs import HEAD
|
from git_refs import HEAD
|
||||||
|
from wrapper import Wrapper
|
||||||
|
|
||||||
|
|
||||||
class Version(Command, MirrorSafeCommand):
|
class Version(Command, MirrorSafeCommand):
|
||||||
@ -62,3 +63,4 @@ class Version(Command, MirrorSafeCommand):
|
|||||||
print('OS %s %s (%s)' % (uname.system, uname.release, uname.version))
|
print('OS %s %s (%s)' % (uname.system, uname.release, uname.version))
|
||||||
print('CPU %s (%s)' %
|
print('CPU %s (%s)' %
|
||||||
(uname.machine, uname.processor if uname.processor else 'unknown'))
|
(uname.machine, uname.processor if uname.processor else 'unknown'))
|
||||||
|
print('Bug reports:', Wrapper().BUG_URL)
|
||||||
|
Loading…
Reference in New Issue
Block a user