hgkw/keyword.py
changeset 394 fe13fe09ba2e
parent 391 d3f114c111ff
child 395 9c51c755118b
--- 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: