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: use upper case Direntry class name

Changeset 056f39c8d61f

Parent d6d517d2d430

by Adrian Buehlmann

Changes to one file · Browse files at 056f39c8d61f Showing diff from parent d6d517d2d430 Diff from another changeset...

 
50
51
52
53
 
54
55
56
 
64
65
66
67
 
68
69
70
 
93
94
95
96
 
97
98
99
 
111
112
113
114
 
115
116
 
117
118
119
 
157
158
159
160
 
161
162
163
 
193
194
195
196
 
197
198
199
 
381
382
383
384
 
385
386
387
 
417
418
419
420
 
421
422
423
 
588
589
590
591
 
592
593
594
 
50
51
52
 
53
54
55
56
 
64
65
66
 
67
68
69
70
 
93
94
95
 
96
97
98
99
 
111
112
113
 
114
115
 
116
117
118
119
 
157
158
159
 
160
161
162
163
 
193
194
195
 
196
197
198
199
 
381
382
383
 
384
385
386
387
 
417
418
419
 
420
421
422
423
 
588
589
590
 
591
592
593
594
@@ -50,7 +50,7 @@
 #endif     -struct direntry +struct Direntry  {   unsigned char state;   unsigned mode; @@ -64,7 +64,7 @@
 };     -char direntry::status(const struct _stat& stat) const +char Direntry::status(const struct _stat& stat) const  {   switch (this->state)   { @@ -93,7 +93,7 @@
 class Directory  {   typedef std::vector<Directory*> DirsT; - typedef std::vector<direntry> FilesT; + typedef std::vector<Direntry> FilesT;     Directory* parent_;   std::string name_; @@ -111,9 +111,9 @@
    std::string path(const std::string& n = "") const;   - int add(const std::string& relpath, direntry& e); + int add(const std::string& relpath, Direntry& e);   - const direntry* get(const std::string& relpath) const; + const Direntry* get(const std::string& relpath) const;   Directory* Directory::getdir(const std::string& n);     char status(const std::string& hgroot); @@ -157,7 +157,7 @@
 }     -int Directory::add(const std::string& n, direntry& e) +int Directory::add(const std::string& n, Direntry& e)  {   std::string base;   std::string rest; @@ -193,7 +193,7 @@
 }     -const direntry* Directory::get(const std::string& n) const +const Direntry* Directory::get(const std::string& n) const  {   std::string base;   std::string rest; @@ -381,7 +381,7 @@
    Directory& root() { return root_; }   - void add(const std::string& relpath, direntry& e) { + void add(const std::string& relpath, Direntry& e) {   root_.add(relpath, e);   ++num_entries_;   } @@ -417,7 +417,7 @@
  fread(&pd->parent1, sizeof(char), HASH_LENGTH, f);   fread(&pd->parent2, sizeof(char), HASH_LENGTH, f);   - direntry e; + Direntry e;     std::vector<char> temp(MAX_PATH+10, 0);   @@ -588,7 +588,7 @@
  }   else   { - const direntry* e = pds->root().get(relpath); + const Direntry* e = pds->root().get(relpath);   if (!e)   return 0;