Commits

Robin Farine  committed 6610350

version tailored to mercurial 0.9.1

  • Participants
  • Parent commits 1be1edb
  • Tags forest-mercurial-0.9.1

Comments (0)

Files changed (1)

 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
 
 
 
 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]