fixing hg web client and git-formatted diff parser behavior

Review Request #1466 — Created March 8, 2010 and submitted — Latest diff uploaded

Information

Review Board

Reviewers

Initial attempts at posting patches for Mercurial repos with --git formatted patches resulted in massive fail.  This patch attempts to do two things, in particular:

    - support parsing of --git formatted patches in addition to "regular" Mercurial patches
    - fix fetching of remote files with the HgWebClient (old behavior fetched html pages due to an extra '/' in url)
ran full test suite (manage.py test)
extensive human-based testing with local ReviewBoard instance