fix failing test_clone_bookmark_named_master_not_at_tip, closes #13

Formerly, when there were no revisions in range, we got

  UnboundLocalError: local variable 'rev' referenced before assignment
HGImporter.process_ref: always reset to head.rev()

Formerly, the git ref would be reset to head.rev() only if the range was
non-empty, even if all revs were already marked, but would reset to the
latest unmarked rev otherwise (which should match for well-behaved hg
repos).  I suspect that this handling of empty ranges was a cause of
problems similar to issue #13 that I have experienced, and that more
reliable logic is to always reset git's ref to head.rev().
Move notes specific tests to separate file

This should make it a bit easier to use the test suite with other
remote-hg helpers.
Merge pull request #40 from jedbrown/bookmark-named-master-not-at-tip

Bookmark named master not at tip
xfail test: double-push with conflict *and* non-English locale
Set HGPLAIN env variable at start of gitifyhg, closes #26

In turn, do not set it in the test suite, as this was covering up various
potential test failures caused by the locale not being set to English.

This fixes the xfail test added in the previous commit.
Merge pull request #41 from fingolfin/notes-tests

Move notes specific tests to separate file
Merge pull request #42 from fingolfin/hg-plain

Set HGPLAIN env variable at start of gitifyhg, closes #26
pep8
set HGRCPATH='' in both tests and remote.

This disallows loading of system or the user's personal hg config files, such as ~/.hgrc.
The main motivator for this is that extensions the user has loaded can cause dissatisfaction
for both scripts and tests. The script will complain bitterly, but will not communicate
clearly if it encounters an extension doing unexpected things -- unexpected by the script,
that is. We can assume the extension thinks it knows what it is doing.

All tests pass with this change, but I am marginally concerned about side effects in which
things like not having the user's credentials set could cause explosions.
pep8
move a couple tests that do more than cloning out of test_clone.

I don't like the name of this file. I'll probably come up with a better one later.
Remove extraneous references to default. This is part of #34.
pep8
Remove references to branches/default when dealing with remotes; these should
*always* be mapped to master in git.

References #34.
Use monkeypatch to ensure two language sensitive tests don't fail depending on locale.

Jed claims that other tests also fail for him, but I haven't duplicated that.

Ref #43.
Copyright bump for 2013
pep8
Add a helper method for checking that hg messages are in order
First pass at pushing tags.

This seems to work fine with lightweight tags. It generally assumes that
only tags are being pushed (ie: git push --tags), but it doesn't fail
completely if you try to push it with a ref (git push --tags origin HEAD).

The problem with lightweight tags is that they don't appear to have any
associated username or date in the git history. So this code is using the
default name and date when it creates the commit in mercurial that
modifies .hgtags.

A bug is that it pushes to default no matter what.

It also hasn't been tested yet with named tags, but that is coming.