# HG changeset patch # User Christian Ebert # Date 1202598837 -3600 # Node ID fe13fe09ba2e7385c7c539090080fe82d4069cf8 # Parent 49bc08b63eb37042af07ca7786edd6b9e5a6c726 keyword: avoid os import by using util.splitpath diff -r 49bc08b63eb3 -r fe13fe09ba2e hgkw/keyword.py --- a/hgkw/keyword.py Sat Feb 09 22:17:31 2008 +0100 +++ b/hgkw/keyword.py Sun Feb 10 00:13:57 2008 +0100 @@ -84,7 +84,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' @@ -427,7 +427,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: