On Jul 21, 12:39 pm, David Roe <roed.m...@gmail.com> wrote:
> Indeed, the following gives the same error:
> roed$ hg log -r 'limit(descendants(14047) and tag(),1)' --template {tags}
> hg: parse error at 24: unexpected token: end

Odd ... that very line works fine for me, but not with mercurial 1.6.4
(shipped with sage 4.7.1). It's OK with bash and mercurial 1.8.4
(shipped with sage 5.0) and with bash and mercurial 1.9.3 (shipped
with fedora). It's not OK with tcsh, because it eats the braces.
Perhaps your shell is interfering?

You might want to check that your line-editing doesn't have different
ideas about where your cursor is, e.g.:

hg log -r 'limit(descendants(12000) and tag(),1' --template {tags}

(note the mismatched parentheses) gives me an error similar to yours.
Readline tends to have trouble if the prompt isn't at the start of a
line, as happens with this code, because the template doesn't include
a newline.

-- 
-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org



Reply via email to