changeset 10:661035098671 forest-mercurial-0.9.1

version tailored to mercurial 0.9.1
author Robin Farine <robin.farine@terminus.org>
date Mon, 23 Oct 2006 19:36:56 +0200
parents 1be1edb45e3e
children 67b5de922489 21d290b44846
files forest.py
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/forest.py	Mon Oct 23 19:35:26 2006 +0200
+++ b/forest.py	Mon Oct 23 19:36:56 2006 +0200
@@ -24,17 +24,12 @@
 forest or to pull/push changes.
 """
 
-version = "0.1"
+version = "0.9.1"
 
 import ConfigParser
 import os
 
 from mercurial import commands, hg, node, util
-
-try: # 'find' renamed as 'findcmd' after Mercurial 0.9
-    from mercurial.commands import findcmd
-except:
-    from mercurial.commands import find as findcmd
 from mercurial.i18n import gettext as _
 from mercurial.repo import RepoError
 
@@ -42,7 +37,7 @@
 
 
 def cmd_options(cmd, remove=None):
-    aliases, spec = findcmd(cmd)
+    aliases, spec = commands.findcmd(cmd)
     res = list(spec[1])
     if remove is not None:
         res = [opt for opt in res if opt[0] not in remove]