diff contrib/shrink-revlog.py @ 15355:dbdb777502dc stable

consistency: use util.realpath instead of os.path.realpath where useful exceptions: hg: os.path.realpath used before util can be imported tests/run-tests.py: may not import mercurial modules
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 24 Oct 2011 13:51:24 +0200
parents b9e1b041744f
children c519cd8f0169
line wrap: on
line diff
--- a/contrib/shrink-revlog.py	Mon Oct 24 13:54:59 2011 +0200
+++ b/contrib/shrink-revlog.py	Mon Oct 24 13:51:24 2011 +0200
@@ -172,7 +172,7 @@
             raise util.Abort(_('--revlog option must specify the revlog index '
                                'file (*.i), not %s') % opts.get('revlog'))
 
-        indexfn = os.path.realpath(fn)
+        indexfn = util.realpath(fn)
         store = repo.sjoin('')
         if not indexfn.startswith(store):
             raise util.Abort(_('--revlog option must specify a revlog in %s, '