keyword: fix mq repository detection under Windows stable
authorPatrick Mezard <pmezard@gmail.com>
Sat, 09 Feb 2008 19:40:30 +0100
branchstable
changeset 390 ee07603fab12
parent 389 d18a329bf222
child 391 d3f114c111ff
keyword: fix mq repository detection under Windows [ original upstream description ]
hgkw/keyword.py
--- a/hgkw/keyword.py	Sat Feb 09 09:42:00 2008 +0100
+++ b/hgkw/keyword.py	Sat Feb 09 19:40:30 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
+import re, shutil, tempfile, time, os
 
 commands.optionalrepo += ' kwdemo'
 
@@ -425,7 +425,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: