# HG changeset patch # User Christian Ebert # Date 1202593071 -3600 # Node ID 212bfb5c50e105c5ec0947864300682d4be43c61 # Parent ea33f695304a40fa5e3199253efe8e57e0b1de66 keyword: avoid os import by using util.splitpath diff -r ea33f695304a -r 212bfb5c50e1 hgext/keyword.py --- a/hgext/keyword.py Sat Feb 09 20:43:42 2008 -0800 +++ b/hgext/keyword.py Sat Feb 09 22:37:51 2008 +0100 @@ -82,7 +82,7 @@ from mercurial import patch, localrepo, templater, templatefilters, util from mercurial.node import * from mercurial.i18n import _ -import re, shutil, tempfile, time, os +import re, shutil, tempfile, time commands.optionalrepo += ' kwdemo' @@ -425,7 +425,7 @@ try: if (not repo.local() or hgcmd in nokwcommands.split() - or '.hg' in repo.root.split(os.sep) + or '.hg' in util.splitpath(repo.root) or repo._url.startswith('bundle:')): return except AttributeError: