Changeset f3fa5bdd1db2…
Parent 9ab67a1275ec…
by
Changes to one file · Browse files at f3fa5bdd1db2 Showing diff from parent 9ab67a1275ec Diff from another changeset...
@@ -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;
|
Loading...