Permalink
Browse files

squash! remote-hg: do not interfer with hg's revs() method

FIXUP: the field is called 'revs_' now, Sverre likes that better.
  • Loading branch information...
1 parent de09888 commit 3c85385aaa88695f846de9b869633a5552e99a17 @dscho dscho committed Apr 9, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 git-remote-hg.py
  2. +1 −1 git-remote-testgit.py
  3. +1 −1 git_remote_helpers/git/repo.py
View
@@ -42,7 +42,7 @@ def get_repo(self, alias, url):
repo.marksfile = 'git.marks'
repo.hg = hg
repo.prefix = prefix
- repo.revs2 = revs # must not override repo.revs()
+ repo.revs_ = revs # must not override repo.revs()
self.setup_repo(repo, alias)
@@ -65,7 +65,7 @@ def local_repo(self, repo, path):
local.git_hg = repo.git_hg
local.hg = repo.hg
- local.revs2 = repo.revs2
+ local.revs_ = repo.revs_
local.exporter = GitExporter(local)
local.importer = GitImporter(local)
local.is_local = repo.is_local
@@ -76,7 +76,7 @@ def do_list(self, repo, args):
"""Lists all known references.
"""
- for ref in repo.revs2:
+ for ref in repo.revs_:
debug("? refs/heads/%s", ref)
print "? refs/heads/%s" % ref
View
@@ -56,7 +56,7 @@ def do_list(self, repo, args):
head is at clone time.
"""
- for ref in repo.revs2:
+ for ref in repo.revs_:
debug("? refs/heads/%s", ref)
print "? refs/heads/%s" % ref
@@ -61,7 +61,7 @@ def get_revs(self):
self.revmap = dict(sanitize(i) for i in output)
if "HEAD" in self.revmap:
del self.revmap["HEAD"]
- self.revs2 = self.revmap.keys()
+ self.revs_ = self.revmap.keys()
ofile.close()
def get_head(self):

1 comment on commit 3c85385

LGTM.

Please sign in to comment.