summaryrefslogtreecommitdiff
path: root/contrib/remote-helpers/git-remote-bzr
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-bzr
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-bzr')
-rwxr-xr-xcontrib/remote-helpers/git-remote-bzr2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr
index aa7bc97bee..cc6609b2f8 100755
--- a/contrib/remote-helpers/git-remote-bzr
+++ b/contrib/remote-helpers/git-remote-bzr
@@ -94,7 +94,7 @@ class Marks:
return self.last_mark
def is_marked(self, rev):
- return self.marks.has_key(rev)
+ return str(rev) in self.marks
def new_mark(self, rev, mark):
self.marks[rev] = mark