Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

cachethg: return NOT_IN_REPO for files in .hg directory

Changeset cc44f0d82d95

Parent 64b6cd06d641

by Simon Heimberg

Changes to one file · Browse files at cc44f0d82d95 Showing diff from parent 64b6cd06d641 Diff from another changeset...

 
82
83
84
 
 
 
 
 
 
85
86
87
 
82
83
84
85
86
87
88
89
90
91
92
93
@@ -82,6 +82,12 @@
  overlay_cache = {None: None}   cache_tick_count = GetTickCount()   return NOT_IN_REPO + hgdir = os.path.join(root, '.hg', '') + if pdir == hgdir[:-1] or pdir.startswith(hgdir): + if not overlay_cache: + cache_tick_count = GetTickCount() + overlay_cache[pdir] = NOT_IN_REPO + return NOT_IN_REPO   try:   tc1 = GetTickCount()   if not repo or repo.root == cache_root: