Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

Check for read access to parent directory before checking whether .hg is a directory.

This dodges an Explorer hang when calling os.path.isdir("\\mynode\.hg") without read access to \\mynode.

Changeset 498981a6bc3f

Parent f4b677864b9b

by craigberry@mac.com

Changes to one file · Browse files at 498981a6bc3f Showing diff from parent f4b677864b9b Diff from another changeset...

 
24
25
26
 
 
27
28
29
 
24
25
26
27
28
29
30
31
@@ -24,6 +24,8 @@
  p = os.path.dirname(p)   if p == oldp:   return None + if not os.access(p, os.R_OK): + return None   return p    if os.name == 'nt':