Change to use urlparse to extract the path which
corresponds to the project name in gerrit. And improve
how the team name is extracted.
Previously if fed:
ssh://dbailey-k@review.openstack.org:29418/openstack-ci/git-review.git
parse_git_show returned:
(review.openstack.org, None, dbailey-k, 29418, git-review)
Instead of:
(review.openstack.org, openstack-ci, dbailey-k, 29418, openstack-ci/git-review)
Change-Id: Ib945c4c0b93623e524c0f536cb4059762eca301e
* Update document date
* 'change' argument was not showing up correctly
* whitepsaces removal
* end sentences with a dot. <--
* Fix some part which where not showing up
Change-Id: I20ceb0ee2831639c2b02e9eb9da8c61f8de187ab
Apparently, python 2.7.3 does split("\n") differently which meant
that the first element was empty.
Change-Id: I0b34f8d161eba0dc5549df311719222691620c65
Add description of defaultremote and defaultreview
options in .gitreview
Add -r remote option to -s synopsis
Updated to match master as of 415fbcbc7faef3d0f7dfa16f12ab3f0f3da0041c
Change-Id: Id64c56863de9fec4016ce42e1686d29b1ee094ba
* Use more modern structural markup for the manpage
* Remove macros and comments left by rst2man
* Provide clues on typical use in synopsis
* Small changes to wording
* Reorder options
* Add Antoine and myself as an author
Change-Id: Ic2bd35b4a4a8ebcbf3e8e4e07d485fa6b6c6349b
Now "-r" can be added every time to provide
new remote to use. During setup this remote
will be created (insted of "gerrit").
Add two .gitreview options:
* defaultremote (default: "gerrit")
remote name to use when no -r specified
* defaultrebase (default: true)
if false, assume -R (no rebase - bug 949422 and others)
Fix problems signalled by pep8
Change-Id: I75e5e7b1bdaffb0fbb1a40c690f10bae4b4be20a
* a bit longer option description
* describe the .ini file
* some very basic examples
Patchset2: various typos and improper english.
Patchset3: three more typos
Thanks to Roan Kattouw for the proof reading.
Change-Id: I2fa74fe2ede8568919929db34ca0b9dee28c6541
To configure color, git accepts {auto,never,always} as well as the usual
boolean values {true,false}.
.gitconfig examples:
Always enable colors:
[color]
ui = true
Never use colors:
[color]
ui = false
Change-Id: I2c309ed8ef1c8b50d0ed283e813dbf64c57d7671
We'll process requirements.txt to install depends as needed.
Also include a hacking doc explaining what we expect.
Also, including argparse automatically breaks our automagic version
numbering, so import it in main() (slightly evil, but not terrible)
Change-Id: Ib3f65459fe2cd54ce531b7ae22935e24bd8f8920
This adds the defaultbranch= option to the config file format, and makes
it the default for the BRANCH command line parameter.
Also removes duplication of the dict with default values
(Amended to pass pep8)
Change-Id: I0fae7ca3a7662fccd491f84a7a3a009480b1c39c
Was hardcoded in:
* checking whether fetching is set up for the remote
* checking whether the topic of a downloaded change is bogus
(amended to pass pep8)
Change-Id: If9a4cd5c76829d69f1b3ee871a25966e5aaaa126
When searching for a topic, use 'git log' instead of 'git show'.
Git show prints the diff, which may include comments that match
the topic regexes. We should really only be looking at the commit
messages, so use 'git log' instead.
Change-Id: I188b1f324b5c584317fd61227c176987a51d087e
Fixes bug 911362.
If you run git review -s in a fresh repo, there is no reason for us to
amend any commits to add a commit message.
If you run git review in a repo with a change but which has not been used
with gerrit before and we download the hook, then we do want to amend the
commit.
Change-Id: I29d3ec42ca086ecdfec6dd788f04e19649eacb24