bump year references from 2011 to 2012

Change-Id: I2a9e0f192ae7421e12b19b15e3bed8fd22fb5a34
enhance man page

* 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
Merge "bump year references from 2011 to 2012"
Allow the user to override remote consequently

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
Reformat manpage to mdoc(7)

* 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
Merge "Allow the user to override remote consequently"
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