# HG changeset patch
# User Simon Heimberg <[email protected]>
# Date 1247060681 -7200
# Node ID 2d96d6254920aed53c0d4401d28fedb32a61b4ab
# Parent 2d1e23f32ac7f34b84eacaf0b0b308894cfc37e2
hggtk: print current hg version if it does not match
diff -r 2d1e23f32ac7 -r 2d96d6254920 contrib/nautilus-thg.py
--- a/contrib/nautilus-thg.py Mit Jul 08 15:39:04 2009 +0200
+++ b/contrib/nautilus-thg.py Mit Jul 08 15:44:41 2009 +0200
@@ -107,7 +107,8 @@
Returns hg.repo
'''
p = paths.find_root(path)
-
+ if not p:
+ return None
try:
return hg.repository(ui.ui(), path=p)
except hglib.RepoError:
diff -r 2d1e23f32ac7 -r 2d96d6254920 hggtk/hgtk.py
--- a/hggtk/hgtk.py Mit Jul 08 15:39:04 2009 +0200
+++ b/hggtk/hgtk.py Mit Jul 08 15:44:41 2009 +0200
@@ -589,8 +589,8 @@
if vers == nextver:
return
raise util.Abort(_('This version of TortoiseHg requires Mercurial '
- 'version %s.n to %s.n') % ('.'.join(reqver),
- '.'.join(nextver)))
+ 'version %s.n to %s.n, but finds %s') %
('.'.join(reqver),
+ '.'.join(nextver), v))
def version(ui, **opts):
"""output version and copyright information"""
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop