Override remote options: update manpage

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
More resilient downloading.

Apparently, python 2.7.3 does split("\n") differently which meant
that the first element was empty.

Change-Id: I0b34f8d161eba0dc5549df311719222691620c65
minor glitches in manpage

* 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
Retrieve project & team name from fetch url

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
Fix scope error with configParser.

Fixes bug 974461.

Change-Id: Ic3e6bc91355dc1df9f14a69f5493ed5dcc497f92
Merge "Retrieve project & team name from fetch url"
Change draft ref to drafts.

Between 2.3-rc0 and 2.3, Gerrit changed the magic drafts
ref to 'drafts'.

Change-Id: I6608633ad55c977d371ea24f76d3b19f5481c568
Start development on 1.17

Change-Id: Ie61bd55ea64a6f873911d5c23a38766cb7a9eac6
fix -d not reusing already existing local branch

For sometime now, git-review -d would bail out with a fatal error
whenever a local branch already exists.  The cause is that the output
message sent by `git checkout -b` has changed and ends with a dot on
certain git version, that skip a condition in git-review code.

git version 1.7.9.4

Patchset 2: Fix nitpicks

Change-Id: I86ce9b577eff185e2cdd3b4dfa8dc31b110b0f13
Removed parsing out of team.

Fixes bug 980929. We were making an assumption of a multi-level project,
which not everyone has. Additionally, we parsed out the "team" name and then
just flat-out didn't use it at all. Go us.

Change-Id: I96269a670bcec95fff63de85c75cb241946eba99
Add support to list changes for review

Add -l, --list option to list all items available
for review in the current project

Change-Id: I7e5128a5867645b6331fa07402db2c76bfab92cd
Disable ssh X11 forwarding.

There is really no need to forward X11 info to gerrit, since it's
not going to do anything with it. Let's just, you know, not forward it.

Change-Id: Iea8ca50b7e82e9361904ed654024a95fa8645c7c
Fix --list breakage in 3531a5bffd4f

Remove bogus value 'team' from the unpacking. git_parse_show() only
returns four values, not five, and 'team' wasn't used anywhere.

Running git review --list without this fix results in:

Traceback (most recent call last):
  File "./git-review", line 732, in <module>
    main()
  File "./git-review", line 686, in main
    print_exit_message(list_reviews(remote), needs_update)
  File "./git-review", line 448, in list_reviews
    parse_git_show(remote, "Push")
ValueError: need more than 4 values to unpack

Change-Id: If0a0fd7274161a2155336526caaff0a9878cc3bc
Run 'git remote update' from assert_one_change

We were experiencing lots of bogus messages from assert_one_change()
where it would think you were submitting multiple revisions, but
remotes/gerrit/master was simply behind. Running 'git remote update
gerrit' or 'git fetch gerrit' fixed it, but git-review should really run
that itself so it knows what it's talking about before it starts yelling
at the user.

Patchset 2: fixes to make this pass pep8

Change-Id: Id3450bb37c1e038270b1db48a8232b5295c2b5a7
Merge "Fix --list breakage in 3531a5bffd4f"
Merge "Run 'git remote update' from assert_one_change"
Update publish ref from refs/for to refs/publish.

Latest versions of gerrit have deprecated refs/for in favor of
refs/publish. This patch updates the ref used by git-review.
Gerrit release notes have the details:
http://gerrit-documentation.googlecode.com/svn/ReleaseNotes/ReleaseNotes-2.3.html

Change-Id: I259734d87c965b7ce37f8262a44b7bbcb5a11fd4
Fixed hook installation for git with submodules.

See
https://github.com/git/git/blob/master/Documentation/RelNotes/1.7.8.txt.
The .git dir in the submodule dir is just a file pointing to a subdir of
the parent module's .git dir. Affects git >= 1.7.8.

Change-Id: I758972bc70e98cf904197bc189cadffd7b23540f
Start dev on 1.18.

Change-Id: I68f9a3d550c21cbe7c99536d6e8f62260a5a5d6c
Just fixing a small typo

Change-Id: I9c9ae434086ca987fc38eede3264a417b1556e4d