Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc1, 0.4rc2, and 0.4rc3

overlay: add global option 'localdisks' to disable icons on networked drives

Changeset 2db7ce92f2d8

Parent 87c05550093f

by TK Soh

Changes to one file · Browse files at 2db7ce92f2d8 Showing diff from parent 87c05550093f Diff from another changeset...

 
150
151
152
153
154
155
 
 
 
 
 
 
 
 
 
156
157
158
 
150
151
152
 
 
 
153
154
155
156
157
158
159
160
161
162
163
164
@@ -150,9 +150,15 @@
  print "hg.repository() took %d ticks" % (win32api.GetTickCount() - tc1)     # check if to display overlay icons in this repo - show_overlay = repo.ui.configlist('tortoisehg', 'overlayicons', []) - print "%s: overlay icons = " % path, show_overlay - if 'disabled' in show_overlay: + global_opts = ui.ui().configlist('tortoisehg', 'overlayicons', []) + repo_opts = repo.ui.configlist('tortoisehg', 'overlayicons', []) + + print "%s: global overlayicons = " % path, global_opts + print "%s: repo overlayicons = " % path, repo_opts + is_netdrive = thgutil.netdrive_status(path) is not None + if (is_netdrive and 'localdisks' in global_opts) \ + or 'disabled' in repo_opts: + print "%s: overlayicons disabled" % path   overlay_cache = {None : None}   cache_tick_count = win32api.GetTickCount()   return NOT_IN_REPO