changeset 6059:d74c5e99d05b

keyword: fix mq repository detection under Windows
author Patrick Mezard <pmezard@gmail.com>
date Sat, 09 Feb 2008 19:40:30 +0100
parents 88b4d726332a
children e4d74100d41b
files hgext/keyword.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/keyword.py	Sat Feb 09 19:39:01 2008 +0100
+++ b/hgext/keyword.py	Sat Feb 09 19:40:30 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
+import re, shutil, tempfile, time, os
 
 commands.optionalrepo += ' kwdemo'
 
@@ -423,7 +423,7 @@
 
     try:
         if (not repo.local() or hgcmd in nokwcommands.split() 
-            or '.hg' in repo.root.split('/')
+            or '.hg' in repo.root.split(os.sep)
             or repo._url.startswith('bundle:')):
             return
     except AttributeError: