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

QueryDirstate.cpp: move _cache into Dirstatecache::get

Changeset 6c05aa69d95b

Parent ab2bc226e0db

by Adrian Buehlmann

Changes to one file · Browse files at 6c05aa69d95b Showing diff from parent ab2bc226e0db Diff from another changeset...

 
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
 
 
 
 
61
62
63
 
45
46
47
 
 
 
 
48
49
50
51
 
 
52
53
54
55
56
57
58
59
60
61
@@ -45,19 +45,17 @@
  E(): dstate(0), dstate_mtime(0), tickcount(0) {}   };   - typedef std::list<E>::iterator Iter; - - static std::list<E> _cache; -  public:   static Dirstate* get(const std::string& hgroot);  };   -std::list<Dirstatecache::E> Dirstatecache::_cache; -    Dirstate* Dirstatecache::get(const std::string& hgroot)  { + typedef std::list<E>::iterator Iter; + + static std::list<Dirstatecache::E> _cache; +   Iter iter = _cache.begin();     for (;iter != _cache.end(); ++iter)