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

thgutil: UNC paths are not considered local disks

fixes #68

Changeset de02915617d8

Parent b1a6be4bc66a

by Steve Borho

Changes to one file · Browse files at de02915617d8 Showing diff from parent b1a6be4bc66a Diff from another changeset...

 
81
82
83
 
 
 
 
84
85
86
 
81
82
83
84
85
86
87
88
89
90
@@ -81,6 +81,10 @@
  return True if a network drive is accessible (connected, ...),   or None if <drive> is not a network drive   """ + if hasattr(os.path, 'splitunc'): + unc, rest = os.path.splitunc(drive) + if unc: # All UNC paths (\\host\mount) are considered nonlocal + return True   letter = os.path.splitdrive(drive)[0]   _drives, total, _ = win32net.NetUseEnum(None, 1, 0)   for drv in _drives: