From 8703921742d9c7d4d3724f89a39ff0e2725cbe7b Mon Sep 17 00:00:00 2001 From: Richard Lowe Date: Fri, 8 Oct 2010 22:44:45 -0400 Subject: 259 SCM tools should work with wider range of Mercurial versions Reviewed by: garrett@nexenta.com Approved by: gwr@nexenta.com --HG-- extra : rebase_source : 226d476ba44d6290017d6774aab7ea3b07dce615 --- usr/src/tools/scripts/hg-active.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr/src/tools/scripts/hg-active.py') diff --git a/usr/src/tools/scripts/hg-active.py b/usr/src/tools/scripts/hg-active.py index 05b67ffcc1..7e49a18db5 100644 --- a/usr/src/tools/scripts/hg-active.py +++ b/usr/src/tools/scripts/hg-active.py @@ -44,8 +44,8 @@ except Version.VersionMismatch, versionerror: import getopt, binascii -from mercurial import hg, ui, util -from onbld.Scm.WorkSpace import WorkSpace, HgRepoError +from mercurial import error, hg, ui, util +from onbld.Scm.WorkSpace import WorkSpace def usage(): @@ -78,7 +78,7 @@ def main(argv): try: repository = hg.repository(ui.ui(), wspath) - except HgRepoError, e: + except error.RepoError, e: sys.stderr.write("failed to open repository: %s\n" % e) sys.exit(1) -- cgit v1.2.3