diff options
author | Dusty Phillips <dusty@linux.ca> | 2013-04-22 16:55:09 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-22 15:25:53 -0700 |
commit | 3473ecd7ffc97d45ebed7374e129da16eb4e1357 (patch) | |
tree | e46cb7c8ad26169f973aa38046f838525f865c76 /contrib/remote-helpers/git-remote-hg | |
parent | Sync with maint (diff) | |
download | tgif-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-x | contrib/remote-helpers/git-remote-hg | 2 |
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) |