[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] question about automate select
From: |
Richard Levitte |
Subject: |
Re: [Monotone-devel] question about automate select |
Date: |
Mon, 12 Nov 2007 17:30:26 +0100 (CET) |
Ah, the drawback of having a more descriptive author value.
For some reason that I find hard to understand, the author is matched
*exactly*, and since my author string is "Richard Levitte
<address@hidden>", just "address@hidden" will not match it.
Using --debug cleared the mystery:
: ; mtn automate select "address@hidden/2007-11" --debug
...
mtn: prepared statement SELECT id FROM (SELECT id FROM revision_certs WHERE
name=? AND CAST(value AS TEXT) glob ? INTERSECT SELECT id FROM revision_certs
WHERE name=? AND CAST(value AS TEXT) glob ?)
mtn: binding 4 parameters for SELECT id FROM (SELECT id FROM revision_certs
WHERE name=? AND CAST(value AS TEXT) glob ? INTERSECT SELECT id FROM
revision_certs WHERE name=? AND CAST(value AS TEXT) glob ?)
mtn: binding 1 with value 'author'
mtn: binding 2 with value 'address@hidden'
mtn: binding 3 with value 'date'
mtn: binding 4 with value '*2007-11*'
Note how binding 2 lacks any globing, while binding 4 has some...
In essence, I'd say you're doing nothing wrong, but maybe that we
should look over the use of selectors...
Cheers,
Richard
In message <address@hidden> on Mon, 12 Nov 2007 10:04:51 -0600, "Craig L.
Ching" <address@hidden> said:
cching> I can't seem to get automate select to work consistently. For my own
cching> databases, the following works:
cching>
cching> mtn --db=webdev.mtn automate select "cching/2007-06"
cching>
cching> But, when I go against the monotone repo with something like:
cching>
cching> mtn --db=monotone.mtn automate select "address@hidden/2007-11"
cching>
cching> I get the following output:
cching>
cching> address@hidden mtn]$ mtn --db=monotone.mtn automate select
cching> "address@hidden/2007-11"
cching> mtn: expanded selector 'address@hidden' -> 'a:address@hidden'
cching> mtn: expanded selector '2007-11' -> 'd:2007-11'
cching>
cching> but I know that Richard has commits in my repository, other than
cching> assuring you that I've pulled the revisions, here's a cert for a
cching> revision that happened this weekend:
cching>
cching> address@hidden mtn]$ mtn --db=monotone.mtn automate certs
cching> d3b9e66e6f080072484d83728c8b7db81af960c3
cching> key "address@hidden"
cching> signature "ok"
cching> name "author"
cching> value "Richard Levitte <address@hidden>"
cching> trust "trusted"
cching>
cching> key "address@hidden"
cching> signature "ok"
cching> name "branch"
cching> value "net.venge.monotone"
cching> trust "trusted"
cching>
cching> key "address@hidden"
cching> signature "ok"
cching> name "changelog"
cching> value " * visualc/config.h: Add PCRE_STATIC defined to 1.
cching> "
cching> trust "trusted"
cching>
cching> key "address@hidden"
cching> signature "ok"
cching> name "date"
cching> value "2007-11-11T12:54:27"
cching> trust "trusted"
cching>
cching> So, what am I doing wrong?
-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.
--
Richard Levitte address@hidden
http://richard.levitte.org/
"When I became a man I put away childish things, including
the fear of childishness and the desire to be very grown up."
-- C.S. Lewis
Re: [Monotone-devel] question about automate select,
Richard Levitte <=