remote-hg: do not interfer with hg's revs() method
commite3705f658ec38209074169380070a6081bdec65b
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 7 Apr 2012 07:12:53 +0000 (7 02:12 -0500)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 11 May 2012 22:50:55 +0000 (11 17:50 -0500)
tree226115b6ee554c1f0064bd56d8dd94236eb07b48
parent0dc6202322cbf8d692a72c39159a63eb63bbe2d9
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