[cig-commits] commit: version tailored to mercurial 0.9.1
Mercurial
hg at geodynamics.org
Mon Nov 24 11:26:48 PST 2008
changeset: 10:661035098671
tag: forest-mercurial-0.9.1
user: Robin Farine <robin.farine at terminus.org>
date: Mon Oct 23 19:36:56 2006 +0200
files: forest.py
description:
version tailored to mercurial 0.9.1
diff -r 1be1edb45e3e -r 661035098671 forest.py
--- 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.
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 @@ commands.norepo += " fclone"
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]
More information about the CIG-COMMITS
mailing list