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 outside of repos

Changeset 4f834367f9ef

Parent 89315add7b6f

by Simon Heimberg

Changes to one file · Browse files at 4f834367f9ef Showing diff from parent 89315add7b6f Diff from another changeset...

 
59
60
61
62
63
64
65
 
66
67
68
 
59
60
61
 
 
 
 
62
63
64
65
@@ -59,10 +59,7 @@
  pdir = os.path.dirname(path)   if cache_pdir == pdir and overlay_cache:   if tc - cache_tick_count < CACHE_TIMEOUT: - try: - status = overlay_cache[path] - except: - status = UNKNOWN + status = overlay_cache.get(path, NOT_IN_REPO)   print "%s: %s (cached)" % (path, status)   return status   else: