[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] Small fix for .mt-attrs handling.
From: |
Lorenzo Campedelli |
Subject: |
[Monotone-devel] Small fix for .mt-attrs handling. |
Date: |
Sat, 13 Dec 2003 15:52:14 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 |
Hello to everybody.
Here is a small fix for a problem I found trying to use the .mt-attrs
file to handle execution rights:
--- monotone-0.8.backup/work.cc 2003-11-22 02:33:26.000000000 +0100
+++ monotone-0.8/work.cc 2003-12-13 15:35:16.000000000 +0100
@@ -432,9 +432,9 @@
explicit add_to_attr_map(attr_map & m): attr(m) {}
bool operator()(match_results<std::string::const_iterator,
regex::alloc_type> const & res)
{
- std::string key(res[1].first, res[2].second);
- std::string value(res[2].first, res[3].second);
- std::string file(res[3].first, res[1].second);
+ std::string key(res[1].first, res[1].second);
+ std::string value(res[2].first, res[2].second);
+ std::string file(res[3].first, res[3].second);
attr[make_pair(file_path(file), key)] = value;
return true;
}
looks like a change in the token position in the .mt-attrs was only
half-applied. The caused problem is a failure like the following
>>>>
attribute map path is .mt-attrs
*** Error: std::length_error: basic_string::_S_create
<<<<
Regards
Lorenzo
- [Monotone-devel] Small fix for .mt-attrs handling.,
Lorenzo Campedelli <=