[PATCH] Fix util._statfiles_clustered() failing at root of a windows drive

Andrei Vermel avermel at mail.ru
Sat Nov 1 07:20:07 CDT 2008


# HG changeset patch
# User Andrei Vermel <avermel at mail.ru>
# Date 1225541714 -10800
# Node ID cc2e2738a4b426cb214be1baebd998fae2b53edb
# Parent  5db7701979c516b99f150ba7c41dbebe43df8e2a
Fix util._statfiles_clustered() failing at root of a windows drive

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -863,6 +863,8 @@
             dir, base = '.', nf
         else:
             dir, base = nf[:pos], nf[pos+1:]
+            if dir[-1] == ':':
+                dir= dir + os.sep
         cache = dircache.get(dir, None)
         if cache is None:
             try:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stat_fix.patch
Type: application/octet-stream
Size: 621 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20081101/b55f704a/attachment.obj 


More information about the Mercurial-devel mailing list