Problem on scanning the tags folder

Added by kkangsar ts 784 days ago

Hi Karl,
If I use svn copy to make a baseline from trunk to tag, supose scan engine is not able to scan through the file.
Any others method to solve this? I am appreciated if you can give me some idea on that.
Thanks a lot.

Best Regards,


Replies

RE: Problem on scanning the tags folder - Added by Karl Heinz Marbaise 784 days ago

Hi,
may be you can be a little more specific. What does "not able to scan.." mean ? Error message? Exception ? or not searchable...
May be you can describe the svn command so i can make a test myself...
BTW: Which Release of SupoSE do you use ?
Kind regards
Karl Heinz Marbaise

RE: Problem on scanning the tags folder - Added by kkangsar ts 783 days ago

Hi Karl,
My repository structure:

  - MyDemo
     - Project
        - tags
           - sources
              - readme.txt
        - trunk
           - sources   
              - readme.txt

The "sources" folder in tags is created using the following svn command.
svn copy file:///D:/MyDemoRepo/Project/trunk/sources file:///D:/MyDemoRepo/Project/tags
D:\>supose.bat scan --create --index c:\temp\test.idx --url file:///D:/MyDemoRepo
Log entry processing: 3
We will scan 3 revisions.
33.33 % of 3 (Revisions: 1 Revision: 1) Changeset: 3 [ 1 i
66.67 % of 3 (Revisions: 2 Revision: 2) Changeset: 2 [ 1 i
100.00 % of 3 (Revisions: 3 Revision: 3) Changeset: 1 [ 1 item size: 0]
We have taken 0.219 seconds for 3 revisions.
This is an average of Infinity revisions/second.
D:\>supose.bat search --index c:\temp\test.idx --query +filename:*.txt --fields revision contents
Query: ' +filename:*.txt'
Field[0]=revision Field[1]=contents Total Hits: 1
1: REVISION:2 CONTENTS:This is a demo test file !!!
Note: Only trunk readme.txt file is being scan. But not tags.

Best Regards
khmarbaise: Fixed Pre in tree

RE: Problem on scanning the tags folder - Added by Karl Heinz Marbaise 775 days ago

Hi kkangsar,
after analyzing your scenario it came up to me that the readme.txt in the tags folder will not be scanned, cause it is not modified in the tags folder.
That means the readme.txt on the tags folder is not indexed a second time, cause it's not modified on the tags folder.

But on the other hand the question is if you can see the information about a tag via query --query "tag:*" things like this?

Kind regards
Karl Heinz Marbaise

RE: Problem on scanning the tags folder - Added by kkangsar ts 755 days ago

Hi Karl,

Sorry for the late replied.
I tried to query using --query "tag:*", it only shows the source folder was added.
1: REVISION:2 DFILENAME: DPATH:/project/tags/source/ KIND:a
Does it mean, the scan engine is not able to scan any file using the svn copy method if the file is not changed?

RE: Problem on scanning the tags folder - Added by Karl Heinz Marbaise 754 days ago

Hi KKangsar,

Sorry for the late replied.

No problem...

I tried to query using --query "tag:*", it only shows the source folder was added. 1: REVISION:2 DFILENAME: DPATH:/project/tags/source/ KIND:a

Yeah...cause the sources folder is in Subversion terms a "Tag"...(only valid for folders).

Does it mean, the scan engine is not able to scan any file using the svn copy method if the file is not changed?

If only the file is copied the contents of the file will not be scanned cause is hasn't changed.
But if a file has been renamed I'm working on a solutions (#186).

On the other hand a copy operation means to add a file (A) and copy-from-a-source which is scanned and stored. You can query on the field (from).

May be you can give some information about what you need to know about a copied file ?

Kind regards
Karl Heinz Marbaise

RE: Problem on scanning the tags folder - Added by kkangsar ts 754 days ago

Hi Karl,

Thanks for your fast response.
I just want to know what files is in the tag folder after the svn copy has been done.

RE: Problem on scanning the tags folder - Added by kkangsar ts 752 days ago

I want to scan also the file in the tags folder.

RE: Problem on scanning the tags folder - Added by Karl Heinz Marbaise 750 days ago

Hi,
the current implementation does not work that way, cause if a tag has been made the contents of the files hasn't been changed. SupoSE doesn't scan the repository paths it scans the revisions instead.
Sorry...but i've created a feature request (#260) for this kind of needs...

Kind regards
Karl Heinz Marbaise