Commit Graph

411 Commits

Author SHA1 Message Date
OpenDev Sysadmins 9b9baf1687 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:25:35 +00:00
Jenkins bef0f92120 Merge "Correct metadata URLs" 2016-02-04 00:05:41 +00:00
James E. Blair adbd20262d Correct metadata URLs
Change-Id: I0e81381ef1c6ba2ccf76ce4d0d0e61d34708bfea
2016-02-02 15:52:04 -08:00
Andreas Jaeger 16f0f4e096 Remove argparse from requirements
argparse was external in python 2.6 but not anymore, remove it from
requirements, it's not needed.

Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
2016-02-02 19:25:46 +01:00
James E. Blair c6a59489fa Initial commit of git-restack
Change-Id: I5508816fcd5c6362ee17a494ae8b997de29505d3
2015-12-18 16:29:55 -08:00
Atsushi SAKAI cfb726e4a0 Fix one typo on git-review documentation
depenedencies => dependencies

Change-Id: Ic4fde22a932a66145ecb821419cba421dcf2177f
2015-08-10 11:18:58 +09:00
Cedric Brandily 44707a1e79 Use git push-url instead of a second remote
Having a gerrit remote means that we fetch changes twice. It's also
not necessary since the push-url can be set on the origin remote. As
a first step, add a config option that changes the default for defaultremote
to origin and then reworks the logic to add the remote url to origin as a
push-url instead of creating a gerrit remote.

Since this will cause people with an existing gerrit remote to have a
push url added and the gerrit remote orpahned, a follow on commit will
come that will look for a gerrit remote and, if it exists, use it as the
source of url for the push-url and then delete the old remote.

Change-Id: Ief5d092a796516de9605b7df64e7b902c3b47351
2015-07-21 12:21:25 +00:00
Jenkins f5619a6f85 Merge "Remove spurious mdoc directives" 2015-06-20 14:14:08 +00:00
Jenkins 7ff674a3d0 Merge "Don't parse git log header for topic" 2015-06-20 14:11:56 +00:00
Benjamin Pflanz d80b6cb346 Don't parse git log header for topic
When looking for candidate topic in bug or blueprint ID, get the
git log  without header lines, e.g., commit hash, author, committer,
dates, so that accidental matches such as commit hash (which could look
like a bug ID) or user name (which could look like anything) don't
accidentally get taken as the topic.

Change-Id: Ie45ed7509e7f873e566f078b55cadd547da704dd
Closes-Bug: #2000296
2015-06-18 13:22:37 -04:00
Jeremy Stanley bfbb9277bc Ignore .eggs cruft
Looks like possibly new setuptools has started leaving a .eggs
directory in the workspace. Add it to .gitignore with extreme
prejudice.

Change-Id: If53d9a2f03c8064265a6915a116983fb34de5f9a
2015-06-17 00:56:40 +00:00
Jeremy Stanley 55a91a6655 Fix H238 violation and enable check for that rule
Change-Id: I04f3d96acfc0be12393cc6cf5f0d3f7006939532
2015-06-17 00:53:01 +00:00
Jeremy Stanley 7a4f2553d6 Update to newer hacking checks
Update to newer hacking checks, and temporarily disable H238 to be
fixed in a subsequent patch.

Change-Id: I7d59ca5680f958852f73e705e45454a1c4d1c800
2015-06-17 00:49:19 +00:00
Clint Adams 37cc8d72cd Remove spurious mdoc directives
This removes several .Ed lines without corresponding .Bd directives.

Originally identified by:
LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z git-review.1 >/dev/null

Change-Id: I673d68c012df857e43e8dbf5cf0104208fb012fe
2015-06-13 00:32:04 -04:00
Jenkins 802044859f Merge "Add “git-review -l” to man page synopsis and usage doc" 2015-06-12 19:14:00 +00:00
Jenkins d1266ee0a5 Merge "Add reviewers on upload" 2015-06-12 17:31:43 +00:00
Clint Adams c5a7bd09b3 Add “git-review -l” to man page synopsis and usage doc
The man page currently contains a description for -l,--list
but it is missing from the SYNOPSIS.

Change-Id: Ide808b9ad89ba68856365c90817a1dcda189735c
2015-06-12 11:39:31 -04:00
Jenkins bde9e28e72 Merge "get_remote_url(): also honor url.*.pushInsteadOf" 2015-06-12 15:32:26 +00:00
Jenkins 5df45d4fd2 Merge "Switch to requests to support proxying of 'https'" 2015-06-12 15:16:04 +00:00
Michael Pratt bb7395009d Add reviewers on upload
Add the --reviewers argument which allows specifying reviewers to be
added to each patch uploaded.  This simplifies the upload process by not
requiring an additional step of adding reviewers to changes.

Gerrit supports specifying reviewers to be added to changes by appending
a list of r='email' options to the refspec being pushed to.  For
example, from the Gerrit 'Uploading Changes' documentation:

git push tr:kernel/common HEAD:refs/for/experimental%r=a@a.com,cc=b@o.com

The --reviewers argument can be passed multiple reviewers to add to the
patch set.  Reviewers containing whitespace are rejected, as whitespace
cannot be added to the refspec.

Change-Id: I8c2f9453a90dd78aa47f7996f2502f9f6cf2d66d
2015-06-12 14:37:42 +00:00
Jenkins 84fc10f563 Merge "Add utf-8 char support" 2015-06-12 14:29:35 +00:00
John Vandenberg 28d79fb96d Update project links
The documentation link was a 404.
A read-only git web interface is not a suitable project home page.

Change-Id: Ib3a459ffb61990b2e412a9eff0247a33afb42441
Related-Bug: 2000006
2015-06-05 21:54:39 +00:00
Jenkins 5bdf3b4858 Merge "Fixed a dead link to the git-review docs" 2015-06-04 01:21:50 +00:00
Jeremy Stanley 0bb2461a2c Override E-mail in Gerrit integration tests
On test platforms where the default hostname is not an FQDN, git
fails to guess a usable E-mail address. We don't actually care what
E-mail address these tests see, so override it with a known working
value.

Change-Id: Id65af4876b9658c34a10d1a8f5c72813830725c4
2015-06-03 21:06:12 +00:00
Dexter Fryar 1a2b90aca4 Fixed a dead link to the git-review docs
Change-Id: I2a3e8fc2e323560a9b45e9d3992d186a99d3828a
2015-06-03 17:09:13 +00:00
Jenkins 9b611d7b67 Merge "Provide an explanation on failed rebase" 2015-05-28 00:22:31 +00:00
Jenkins 9f3bc5909f Merge "Isolate tests from user/system git configuration" 2015-05-27 23:45:52 +00:00
James E. Blair e64e500234 Provide an explanation on failed rebase
It is not clear why git-review might attempt a rebase and fail,
so provide a helpful error message with suggested next steps in
that case.

Co-Authored-By: Clark Boylan <clark.boylan@gmail.com>
Change-Id: I195554ed5c577c39687d9001a177dadf107bab61
2015-05-27 19:37:28 +00:00
Darragh Bailey 48d6059a5f Switch to requests to support proxying of 'https'
Convert to using the requests module which supports proxying of 'https'
connections for retriving the gerrit war file when behind a corporate
proxy.

Change-Id: Id368cb6aa7058970ad6ac10caacea2aec9bfe48b
2015-05-19 18:28:06 +01:00
Darragh Bailey f78f328b17 Use plumbing rev-parse to get the branch name
Git plumbing command rev-parse is able to return the current branch
symbolic name in a machine readable manner and will return the rev
inputted (HEAD in this case) if no corresponding branch can be found
(detached HEAD).

This works on all versions of git since 1.6.3 and alternatively can be
replaced with 'git symbolic-ref --short -q HEAD' on versions 1.7.10 and
newer.

Change-Id: I486dcad4b73f9f06d7196e6888a4da79c7d574ad
2015-05-05 14:43:33 +01:00
Darragh Bailey f5bb6e06fd Isolate tests from user/system git configuration
Prevent user or system configuration from impacting the output of git
commands through custom configuration options. Example is enabling of
"branch.autosetuprebase=always" will result a different message being
outputted by git when creating branches causing some tests to fail when
attempting to match against the expected output.

Change-Id: Ic6526217b598abfef0a272bc7cd1852c5821163a
2015-05-04 22:56:48 +01:00
Monty Taylor a13b7a9d77 Push language override down into the cmd wrapper
There are more things that break if we run git with i18n on. Make sure
that we always set LANG and LANGUAGE to C so that we get predictable
output.

Change-Id: I1bf1124f0b09d6658a7b0703e3b9e74ed80f4eea
2015-05-04 17:08:31 +00:00
Jenkins f4f6674c9c Merge "Choose tracked branch for rebase when submitting" 2015-04-13 18:43:07 +00:00
Dmitry Ratushnyy fbdff3245e git review -sv gets more verbose
Sometimes it's difficult to understand reason
why git review -s failed since error description
in code is not streamed to stdout.

Change-Id: I59c0deef5f32d10f9e3e7c50dbaffc6a9f59a466
Closes-Bug: #2000234
2015-04-09 19:59:13 +03:00
liuyang1 f422005d19 Add utf-8 char support
git-review list cannot show CL whose subject contain utf-8 char.

Implements: encode as utf-8
Change-Id: Ifa743e2ac95880172dfa52e160ae8aabaae8f337
2015-04-03 08:46:15 +08:00
Michael Johnson 7da7c37170 Choose tracked branch for rebase when submitting
When choosing the branch to submit a changeset against, and
against which to rebase a changeset if it is being rebased, a new
gerrit.track configuration item and corresponding --track command
line option indicate to use the upstream branch being tracked as the
source of branch information, in preference to configuration. When
downloading a changeset, always set it up to track the matching
remote branch to make --track work for downloaded changesets.
If a branch name is provided explicitly on the command line, it
overrides the tracked branch.

Rationale:

Workflows with multiple active branches are common.  For example,
there may be one development branch (master) and multiple branches
representing prior releases to which bug fixes are still being
made.  Then a common workflow is to fix bugs in the earliest
affected branch still maintained and merge forward or cherry-pick
to master.  The commits being made to the earlier released branches
should not be rebased against master.

A typical usage pattern in this workflow is:

    git checkout -b my-feature origin/master
    ... implement feature ...
    git review -f

    git checkout -b my-bug-fix origin/maintenancebranch
    ... implement bug fix ...
    git review -f maintenancebranch

    git checkout -b my-bug-fix-merge origin/master
    git merge maintenancebranch / git cherry-pick -x ... / git review -x ...
    git review -f

The developer, who is usually implementing features and therefore
used to working against master, may accidentally forget to name
the release branch when running git review for the bug fix to the
release branch.  Mananging .gitreview files across branches and
repositories scales poorly with larger numbers of repositories
and branches and can be vulnerable to missed bad merges altering
configuration to point at wrong branches.

This change rebases changesets against the tracked remote and branch,
or if no branch is tracked, against the previously-specified branch,
instead of against <defaultremote>/master, only if gerrit.track has
been set to true.  With this change, the developer can safely omit
to specify the branch name when committing changes to non-default
branches such as "maintenancebranch" in the example.

When downloading a changeset, it will always be set up to track the
matching remote branch.  That way, whether or not the gerrit.track
configuration item is set when the changeset is downloaded, the right
branch will be chosen when it is submitted if gerrit.track is set
after the changeset is downloaded, or if the --track command line
option is specified.

Closes-Bug: #883176
Story: #883176
Story: #2000176
Change-Id: I25f22b9e3cda38598681d720a2f2ac534baec5a6
2015-03-18 09:17:34 -04:00
Jenkins 79262a5230 Merge "Support authentication in run_http_exc" 2015-03-17 17:25:24 +00:00
Antoine Musso 2ff009d09f pbr should install the manpage
The manpage is no more installed when invoking 'python setup.py install'
since the pbr migration (d73c473 https://review.openstack.org/35486/ ).

Digging in pbr code, I eventually found out the setup.cfg file needs to
list the manpages to be installed (pbr.manpages).  The feature has been
introduced in pbr 0.5.7.

Closes-Bug: 1387174
Change-Id: I9105cff65e830ec2b7800311ed400707feb96a77
2015-03-14 13:40:09 +01:00
Anders Kaseorg ae4b4f2f90 get_remote_url(): also honor url.*.pushInsteadOf
As a follow up to https://review.openstack.org/109851, we also need to
respect the "url.<base>.pushInsteadOf" setting like git remote show
did.

Change-Id: I6c4cb9e11dcc5f096af03b2b2356216365eaf111
2015-03-01 05:19:57 -05:00
Cedric Brandily 910ffddd1b Support authentication in run_http_exc
Authentication could be required when performing REST API authenticated
queries over http(s) (done by run_http_exc). Typically, it appends with
gerrit behind apache2.

This change queries git credential for gerrit password when http request
returns a 401.

Change-Id: Iad60eea938c42210ba8c5df4a1b76f8d2f4dd76d
2015-02-27 16:17:35 +01:00
Jenkins 80f7cd2c0a Merge "get_remote_url(): honor any "url.<base>.insteadOf" config setting" 2015-02-07 01:01:41 +00:00
Jenkins 4158150c48 Merge "Split README.rst into separate doc files" 2015-02-03 18:47:51 +00:00
Doug Hellmann b6aab6d9d6 Split README.rst into separate doc files
Split up the README into separate documentation files so we can publish
the documentation for git-review.

Change-Id: Idcdf43e73c5ca5b8cb239606236e3b2a660c46b7
2015-02-03 17:38:50 +01:00
Jenkins 0861f1fa88 Merge "Handle correctly http error raise in run_http_exc" 2014-12-30 17:08:43 +00:00
Jenkins 63d9ceffb8 Merge "Update tests to use Gerrit 2.9.2" 2014-12-30 17:04:29 +00:00
Cedric Brandily 0393c989ae Handle correctly http error raise in run_http_exc
Currently http errors are raised inside a try bloc and transformed in
a more generic exception. This change raises http errors outside the
try bloc.

Change-Id: Iece270ac84925625e848f3049072f39e19e068cc
2014-12-22 15:01:04 +01:00
Jenkins 0a1c1b0a86 Merge "Use 'no_proxy' env variable in addition to uppercase" 2014-12-19 14:23:43 +00:00
Jenkins 4213843eeb Merge "Workflow documentation is now in infra-manual" 2014-12-19 14:19:13 +00:00
Jenkins f3e623f115 Merge "Convert add_remote to use GitReviewExceptions" 2014-12-19 14:08:30 +00:00
Jenkins 0e37367426 Merge "Enable color support based on tty and config" 2014-12-19 14:08:20 +00:00