remote-hg: do not interfer with hg's revs() method
commit96a825e92d858380785102c3ec6129e6cb9bbe47
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 7 Apr 2012 07:12:53 +0000 (7 02:12 -0500)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 22 Oct 2012 12:31:27 +0000 (22 13:31 +0100)
tree889706e710c6ac392990e4b3ebca1c14ce786dfc
parent5b754678bf80f629055baeb5c30a4ee3329265ce
remote-hg: do not interfer with hg's revs() method

Matt Mackall introduced a revs() method to the localrepo class on Wed
Nov 2 13:37:34 2011 in the commit 'localrepo: add revs helper method'.
It is used when constructing a commit in memory.

If we store the set of revs we want to handle under the same name, it
overrides that method, resulting in an unpleasant 'TypeError: 'set'
object is not callable' whenever we want to push (as we are constructing
commits in memory, then).

So let's work around that by renaming our field to 'revs_' and hope that
upstream Mercurial does not introduce a field of that name, too.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
git-remote-hg.py
git-remote-testgit.py
git_remote_helpers/git/repo.py