Jump to content

"cm find revisions where owner=peter" fails. Why?


ferdBerful

Recommended Posts

Why does this fail:

 

    cm find revisions where owner=peter

 

The error message is:

 

    Query error: unexpected token: ["peter",<10>,line=1,col=28]

 

Is there some documentation on the expected format for "owner"?

 

Also, this example from

     https://www.plasticscm.com/documentation/cmfind/plastic-scm-version-control-query-system-guide.shtml

Chapter 1 fails:

 

cm find branches where owner='pablo' and changesets ">=" '2013/03/01'

 

Error: unexpected char: '/'

 

I copied the above "cm find branches" command string directly from the web page using copy/paste

 

    Or you can enclose only the comparison operators:
  cm find branches where owner='pablo' and changesets ">=" '2013/03/01'

 

I'm running 5.4.16.762

 

Link to comment
Share on other sites

More information:

 

The above is in a Linux shell. This command works in a Windows cmd shell:

 

    cm find branches where owner='pablo' and changesets ">=" '2013/03/01'

 

but this one still doesn't work in a Windows cmd shell:

 

    cm find revisions where owner=peter

 

However, this works on Windows:

 

    cm find revisions where owner='peter'

 

But doesn't work  on Linux.

 

Ah ...

 

This does work on Linux:

 

    cm find revisions where owner="'peter'"

 

!?

 

Do the where values have to have literal single quotes around them?

 

Well, not always. This works on Linux

 

    cm find revision where changeset=4

 

Is there documentation on the exact quoting rules?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...