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

shellext: fixed incorrect overlays for dirs having same prefix (bug #259)

Changeset e47ed9bcdf5d

Parent 24cbfed52a35

by Adrian Buehlmann

Changes to one file · Browse files at e47ed9bcdf5d Showing diff from parent 24cbfed52a35 Diff from another changeset...

 
19
20
21
22
 
23
24
25
26
27
 
 
28
29
30
31
 
 
32
33
34
 
81
82
83
 
84
85
86
 
19
20
21
 
22
23
24
25
26
27
28
29
30
31
32
 
33
34
35
36
37
 
84
85
86
87
88
89
90
@@ -19,16 +19,19 @@
 #include "DirectoryStatus.h"     -char DirectoryStatus::status(const std::string& relpath) const +char DirectoryStatus::status(const std::string& relpath_) const  {   char res = 'C';   bool added = false;   bool modified = false;   + const std::string relpath = relpath_ + '/'; +   for (V::const_iterator i = v_.begin(); i != v_.end(); ++i)   {   const E& e = *i; - if (e.path_.compare(0, relpath.length(), relpath) == 0) + if (relpath_.empty() || + e.path_.compare(0, relpath.length(), relpath) == 0)   {   if (e.status_ == 'm' || e.status_ == 'r')   { @@ -81,6 +84,7 @@
  if (path.size() > 1000)   return 0;   } + path.push_back('/');   path.push_back(0);     e.path_ = &path[0];