Merge lp:~danielturcanu/zorba/mytrunk into lp:zorba

Proposed by Daniel Turcanu
Status: Superseded
Proposed branch: lp:~danielturcanu/zorba/mytrunk
Merge into: lp:zorba
Diff against target: 89 lines (+9/-4) (has conflicts)
7 files modified
ChangeLog (+4/-0)
src/diagnostics/dict_XX_cpp.xq (+1/-0)
src/diagnostics/pregenerated/dict_en.cpp (+1/-0)
src/runtime/strings/strings_impl.cpp (+1/-1)
src/zorbatypes/URI.cpp (+0/-3)
test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a4.xml.res (+1/-0)
test/rbkt/Queries/zorba/string/Regex/regex_a4.xq (+1/-0)
Text conflict in ChangeLog
To merge this branch: bzr merge lp:~danielturcanu/zorba/mytrunk
Reviewer Review Type Date Requested Status
Chris Hillery Needs Fixing
Matthias Brantner Needs Information
Review via email: mp+78996@code.launchpad.net

This proposal has been superseded by a proposal from 2011-10-12.

Commit message

fn:analyze-string fix

Description of the change

fn:analyze-string fix

To post a comment you must log in.
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

What is the file test/rbkt/Queries/zorba/resolving/path_to_uri.xq supposed to test. It imports the file module but doesn't use it.

review: Needs Information
Revision history for this message
Daniel Turcanu (danielturcanu) wrote :
Revision history for this message
Chris Hillery (ceejatec) wrote :

IMHO, path_to_uri.xq / .spec / .xml.res shouldn't be checked in with this change, since it's not related to the bug being fixed. path_to_uri.spec isn't relevant and shouldn't be checked in at all, since the variable $input-context it declares isn't used by path_to_uri.xq.

Also, why are there additional #include <zorba/config.h> lines added? That will probably slow builds down (more header dependencies), so if it's not critically important it'd be best to leave it out.

Finally, the good news: I confirmed that the change to strings_impl.cpp does fix the query regex_a4.xq. (Although, if I can continue being picky, I'd prefer to leave regex_a4.xq in the test/rbkt/Queries/zorba/string/AnalyzeString directory, rather than adding the new Regex subdirectory there.)

review: Needs Fixing
lp:~danielturcanu/zorba/mytrunk updated
10478. By Daniel Turcanu

Update to trunk

10479. By Daniel Turcanu

Deleted blank uri test

10480. By Daniel Turcanu

Update to trunk

10481. By Daniel Turcanu

Update to trunk

10482. By Daniel Turcanu

Update to trunk

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2011-10-12 09:20:36 +0000
+++ ChangeLog 2011-10-12 12:51:34 +0000
@@ -48,7 +48,11 @@
48 * Fixed bug #869025 (segmentation fault with node-reference)48 * Fixed bug #869025 (segmentation fault with node-reference)
49 * New node-reference module. References can be obtained for any node, and49 * New node-reference module. References can be obtained for any node, and
50 different nodes cannot have the same identifier.50 different nodes cannot have the same identifier.
51<<<<<<< TREE
51 * Fixed bug #872697 (segmentation fault with validation of NMTOKENS)52 * Fixed bug #872697 (segmentation fault with validation of NMTOKENS)
53=======
54 * Fixed bug #868325 (fn:analyze-string fails with some recursive subgroups)
55>>>>>>> MERGE-SOURCE
5256
53version 2.0.157version 2.0.1
5458
5559
=== modified file 'src/diagnostics/dict_XX_cpp.xq'
--- src/diagnostics/dict_XX_cpp.xq 2011-08-05 02:21:55 +0000
+++ src/diagnostics/dict_XX_cpp.xq 2011-10-12 12:51:34 +0000
@@ -64,6 +64,7 @@
64return string-join(64return string-join(
65 ( util:copyright(), 65 ( util:copyright(),
66 '#include "stdafx.h"',66 '#include "stdafx.h"',
67 '#include "zorba/config.h"',
67 '#include "diagnostics/dict_impl.h"',68 '#include "diagnostics/dict_impl.h"',
68 '',69 '',
69 'namespace zorba {',70 'namespace zorba {',
7071
=== modified file 'src/diagnostics/pregenerated/dict_en.cpp'
--- src/diagnostics/pregenerated/dict_en.cpp 2011-10-05 17:49:48 +0000
+++ src/diagnostics/pregenerated/dict_en.cpp 2011-10-12 12:51:34 +0000
@@ -20,6 +20,7 @@
20 */20 */
21 21
22#include "stdafx.h"22#include "stdafx.h"
23#include "zorba/config.h"
23#include "diagnostics/dict_impl.h"24#include "diagnostics/dict_impl.h"
2425
25namespace zorba {26namespace zorba {
2627
=== modified file 'src/runtime/strings/strings_impl.cpp'
--- src/runtime/strings/strings_impl.cpp 2011-08-10 18:58:11 +0000
+++ src/runtime/strings/strings_impl.cpp 2011-10-12 12:51:34 +0000
@@ -1688,7 +1688,7 @@
1688 GENV_ITEMFACTORY->createString(strid_item, zstrid);1688 GENV_ITEMFACTORY->createString(strid_item, zstrid);
1689 store::Item_t id_attrib_item;1689 store::Item_t id_attrib_item;
1690 GENV_ITEMFACTORY->createAttributeNode(id_attrib_item, group_elem.getp(), nr_attrib_name, untyped_type_name, strid_item);1690 GENV_ITEMFACTORY->createAttributeNode(id_attrib_item, group_elem.getp(), nr_attrib_name, untyped_type_name, strid_item);
1691 if(match_startg < 0)1691 if((match_startg < 0) || (match_startg < match_endgood))
1692 continue;1692 continue;
1693 match_endgood = match_endg;1693 match_endgood = match_endg;
1694 if((i+1)<nr_pattern_groups)1694 if((i+1)<nr_pattern_groups)
16951695
=== modified file 'src/zorbatypes/URI.cpp'
--- src/zorbatypes/URI.cpp 2011-06-24 23:00:33 +0000
+++ src/zorbatypes/URI.cpp 2011-10-12 12:51:34 +0000
@@ -1191,8 +1191,6 @@
1191 return is_set(Scheme) && !theScheme.empty();1191 return is_set(Scheme) && !theScheme.empty();
1192}1192}
11931193
1194
1195
1196/*******************************************************************************1194/*******************************************************************************
11971195
1198********************************************************************************/1196********************************************************************************/
@@ -1347,7 +1345,6 @@
1347 path = base_path.substr(0, last_slash+1);1345 path = base_path.substr(0, last_slash+1);
1348// else1346// else
1349// path = "/";1347// path = "/";
1350
1351 }1348 }
13521349
1353 // 6b - append the relative URI path1350 // 6b - append the relative URI path
13541351
=== added directory 'test/rbkt/ExpQueryResults/zorba/string/Regex'
=== added file 'test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a4.xml.res'
--- test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a4.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/string/Regex/regex_a4.xml.res 2011-10-12 12:51:34 +0000
@@ -0,0 +1,1 @@
1<fn:analyze-string-result xmlns:fn="http://www.w3.org/2005/xpath-functions"><fn:match>a<fn:group nr="1"><fn:group nr="2"/><fn:group nr="3">c</fn:group></fn:group></fn:match></fn:analyze-string-result>
0\ No newline at end of file2\ No newline at end of file
13
=== added directory 'test/rbkt/Queries/zorba/string/Regex'
=== added file 'test/rbkt/Queries/zorba/string/Regex/regex_a4.xq'
--- test/rbkt/Queries/zorba/string/Regex/regex_a4.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/string/Regex/regex_a4.xq 2011-10-12 12:51:34 +0000
@@ -0,0 +1,1 @@
1fn:analyze-string("ac", "((a)|(c))+")
0\ No newline at end of file2\ No newline at end of file

Subscribers

People subscribed via source and target branches