summaryrefslogtreecommitdiff
path: root/contrib/remote-helpers/git-remote-hg
diff options
context:
space:
mode:
authorLibravatar Dusty Phillips <dusty@linux.ca>2013-04-22 16:55:09 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-22 15:25:53 -0700
commit3473ecd7ffc97d45ebed7374e129da16eb4e1357 (patch)
treee46cb7c8ad26169f973aa38046f838525f865c76 /contrib/remote-helpers/git-remote-hg
parentSync with maint (diff)
downloadtgif-3473ecd7ffc97d45ebed7374e129da16eb4e1357.tar.xz
remote-helpers: avoid has_key
It is deprecated. [fc: do the same in remote-bzr] Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/remote-helpers/git-remote-hg')
-rwxr-xr-xcontrib/remote-helpers/git-remote-hg2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg
index 548133121d..2cd1996626 100755
--- a/contrib/remote-helpers/git-remote-hg
+++ b/contrib/remote-helpers/git-remote-hg
@@ -129,7 +129,7 @@ class Marks:
self.last_mark = mark
def is_marked(self, rev):
- return self.marks.has_key(str(rev))
+ return str(rev) in self.marks
def get_tip(self, branch):
return self.tips.get(branch, 0)