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

cachethg: correct testing if repo argument is matching

Changeset 496ef4cf6121

Parent e1b2305f5685

by Simon Heimberg

Changes to one file · Browse files at 496ef4cf6121 Showing diff from parent e1b2305f5685 Diff from another changeset...

 
90
91
92
93
 
94
95
 
96
97
98
 
90
91
92
 
93
94
 
95
96
97
98
@@ -90,9 +90,9 @@
  return NOT_IN_REPO   try:   tc1 = GetTickCount() - if not repo or repo.root == cache_root: + if not repo or (repo.root != root and repo.root != os.path.realpath(root)):   repo = hg.repository(ui.ui(), path=root) - print "hg.repository() took %g ticks" % (GetTickCount() - tc1) + print "hg.repository() took %g ticks" % (GetTickCount() - tc1)   # check if to display overlay icons in this repo   overlayopt = repo.ui.config('tortoisehg', 'overlayicons', ' ').lower()   print "%s: repo overlayicons = " % path, overlayopt