summaryrefslogtreecommitdiff
path: root/contrib/hg-to-git
diff options
context:
space:
mode:
authorLibravatar Miklos Vajna <vmiklos@frugalware.org>2008-07-06 05:15:17 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-07-05 23:35:11 -0700
commit6376cffaebe40947eea9afb4ae6df05a6ac59ae8 (patch)
tree5cd84ee504acc57e84efa77bc325613d6c5c22f9 /contrib/hg-to-git
parentINSTALL: Update section about git-frotz form. (diff)
downloadtgif-6376cffaebe40947eea9afb4ae6df05a6ac59ae8.tar.xz
hg-to-git: avoid raising a string exception
This fixes the following warning: hg-to-git.py:92: DeprecationWarning: raising a string exception is deprecated Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/hg-to-git')
-rwxr-xr-xcontrib/hg-to-git/hg-to-git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py
index f68ef725d4..25d99411ca 100755
--- a/contrib/hg-to-git/hg-to-git.py
+++ b/contrib/hg-to-git/hg-to-git.py
@@ -89,7 +89,7 @@ try:
if o in ('-v', '--verbose'):
verbose = True
if len(args) != 1:
- raise('params')
+ raise Exception('params')
except:
usage()
sys.exit(1)