Anonymous avatar Anonymous committed 6610350

version tailored to 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]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.