Fixed another hg-1.0 compatibility issue: RepoError is in mercurial.repo.
1.1 --- a/deps.py Tue Apr 07 13:25:03 2009 +0200
1.2 +++ b/deps.py Tue Apr 07 13:55:41 2009 +0200
1.3 @@ -67,7 +67,12 @@
1.4 from mercurial.i18n import _
1.5 from mercurial import cmdutil, commands, fancyopts, hg, util, localrepo
1.6 from mercurial import context
1.7 -from mercurial.repo import RepoError
1.8 +import mercurial.repo
1.9 +
1.10 +if 'RepoError' in dir(mercurial.repo):
1.11 + from mercurial.repo import RepoError
1.12 +else:
1.13 + from mercurial.error import RepoError
1.14
1.15 def deps(ui, repo, tag = None, **opts):
1.16 '''create and manage versioned repository dependencies