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

dirstate.cpp: move class dirstatecache down

nothing changed, just moved that code block

Changeset f3fa5bdd1db2

Parent 9ab67a1275ec

by Adrian Buehlmann

Changes to one file · Browse files at f3fa5bdd1db2 Showing diff from parent 9ab67a1275ec Diff from another changeset...

 
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
 
195
196
197
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
199
200
 
131
132
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
135
136
 
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
@@ -131,28 +131,6 @@
 };     -class dirstatecache -{ - struct entry - { - const dirstate* dstate; - __time64_t mtime; - std::string hgroot; - - entry(): dstate(0), mtime(0) {} - }; - - typedef std::list<entry>::iterator Iter; - - static std::list<entry> _cache; - -public: - static const dirstate* get(const std::string& hgroot); -}; - -std::list<dirstatecache::entry> dirstatecache::_cache; - -  std::auto_ptr<dirstate> dirstate::read(const char *path)  {   FILE *f = fopen(path, "rb"); @@ -195,6 +173,28 @@
 }     +class dirstatecache +{ + struct entry + { + const dirstate* dstate; + __time64_t mtime; + std::string hgroot; + + entry(): dstate(0), mtime(0) {} + }; + + typedef std::list<entry>::iterator Iter; + + static std::list<entry> _cache; + +public: + static const dirstate* get(const std::string& hgroot); +}; + +std::list<dirstatecache::entry> dirstatecache::_cache; + +  const dirstate* dirstatecache::get(const std::string& hgroot)  {   std::string path = hgroot;