ferdBerful Posted July 28, 2016 Report Share Posted July 28, 2016 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 sharing options...
ferdBerful Posted July 28, 2016 Author Report Share Posted July 28, 2016 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 More sharing options...
calbzam Posted August 2, 2016 Report Share Posted August 2, 2016 Hi, Please use quotation marks to make it work in both Windows and Linux. Sorry for the inconveniences. cm find changeset where branch="'/main/branch1'" --format="{changesetid}>{parent}" Best regards, Carlos. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.