Supose and HEAD
Added by Doug Warren 663 days ago
Is it possible to limit Supose searches to either files that exist in the HEAD revision or even better yet files AS they exist in the HEAD revision? If I refactor something and want to search to see where it's still being used I'm getting all of the hits from the pre-refactored version. I'd even settle for being able to create an index from the current version if that was possible.
Replies
RE: Supose and HEAD - Added by Karl Heinz Marbaise 661 days ago
Sorry took a little time...
at the momment SupoSE does not directly support this...but what you can do is to limit the search on a particular revision or a range of revisions for example the following--query "whatever you are searchgin for +revision:RevisionNumber"
or
--query "whatever you are searchgin for +revision:[RevisionFrom TO RevisionTo]"
May be i should introduce the usage of a particular revision number "HEAD" to support that in a better way...
Kind regards
Karl Heinz Marbaise
RE: Supose and HEAD - Added by Doug Warren 660 days ago
Karl Heinz Marbaise wrote:
Sorry took a little time...
at the momment SupoSE does not directly support this...but what you can do is to limit the search on a particular revision or a range of revisions for example the following [...] or [...]
May be i should introduce the usage of a particular revision number "HEAD" to support that in a better way...
When I have tried that in the past it only matches files that have added in the revision range specified.
IE:
Revision 1 I have a file that's never been committed before and it has the line:
this_function(int arg1, int arg2, string stringarg3)
in revision 10 I change it so that it's:
this_function(int arg1, int arg2)
HEAD is revision 40.
--query "this_function" will find this_function as it existed in revision 1
--query "this_function +revision:40" will find no matches
--query "this_function +revision:1" will find this_function
--query "this_function +revision:10" will find no matches even though in that revision the line changed.
If the file is NEW in revision 10 then it will find the query, but not for a changed file.
My scan command line is:
/home/thebigwavenet/supose-0.6.2RC1-447/bin/supose scan --url file:///home/svn/tsunami-repo/tsunami --index /home/thebigwavenet/Tsunami-Search --fromrev `cat /tmp/lastsvnrevision`