Page 1 of 3

Header not marked as changed

Posted: Fri Aug 22, 2008 1:03 pm
by frank_frl
Hi Eran,

I have a project where the sources are in a sub folder 'scr' and the headers are in a sub folder 'include'. The whole structure is imported to the SVN repo.
Changes in the source file are shown by icons but not for the header files. Also a commit of the workspace only updates the source files in the repo. But when I make a diff on that header in the explorer tab, the differences are shown.

WinXp SP2 CodeLite rev. 2013

http://sourceforge.net/tracker/index.ph ... tid=979960

Regards,

Frank

Re: Header not marked as changed

Posted: Fri Aug 22, 2008 1:10 pm
by eranif
frank_frl wrote:Changes in the source file are shown by icons but not for the header files
Can u explain this one? Do you mean that when you modify a header file, it is not shown in the tree? have u tried 'Svn->Refresh Svn icons' ?

Ok, after thinking of what you described here, I think that this is the solution:
Add the header files into the project - otherwise they wont be handled (from the 'workspace' tab)

When using the 'SVN' from the 'Workspace' tab, only files that are part of the workspace will be handled (including the .workspace & .project).
When using the 'SVN' from the 'Explorer' tab it works on actual directories.

Eran

Re: Header not marked as changed

Posted: Fri Aug 22, 2008 1:26 pm
by frank_frl
Do you mean that when you modify a header file, it is not shown in the tree? have u tried 'Svn->Refresh Svn icons' ?
Thats what I mean. 'Svn->Refresh Svn icons' doesn't help.
Ok, after thinking of what you described here, I think that this is the solution:
Add the header files into the project - otherwise they wont be handled (from the 'workspace' tab)
Header files are in the project.

The 2 images show my workspace. The second image shows it after adding a function to header and source.

Re: Header not marked as changed

Posted: Fri Aug 22, 2008 1:39 pm
by eranif
Can u do this: copy the full path of one of the header files, (right click on the files' tab and select Copy Full Path To Clipboard')

Code: Select all

svn status --xml --non-interactive --no-ignore -q "full/path/of/file/goes/here"
And paste the output here?


Or better, is your code open source? if it does, a link to your repository would be great - so I can test it locally.

Eran

Re: Header not marked as changed

Posted: Fri Aug 22, 2008 2:09 pm
by frank_frl
Can u do this: copy the full path of one of the header files, (right click on the files' tab and select Copy Full Path To Clipboard')

Code: Select all

<?xml version="1.0"?>
<status>
<target
   path="E:\WxWindows\projects_gnu\MyLibs\include\frlconfig.h">
<entry
   path="E:\WxWindows\projects_gnu\MyLibs\include\frlconfig.h">
<wc-status
   props="none"
   item="modified"
   revision="73">
<commit
   revision="73">
<author>Frank</author>
<date>2008-08-22T08:51:00.859375Z</date>
</commit>
</wc-status>
</entry>
</target>
</status>

Re: Header not marked as changed

Posted: Fri Aug 22, 2008 10:40 pm
by eranif
Hi Frank,

I installed a local SVN server for testing pruposes, and create the following directory structure:

Code: Select all

TestSVN
├───Debug
├───include
└───src
I placed some header files under include/ and the sources under src/ played with it a bit, and it all seems to works fine.
Can you please provide me with a directory structure of your project? (typing 'tree' command from the cmd.exe prints a nice layout)

Eran

Re: Header not marked as changed

Posted: Fri Aug 22, 2008 11:30 pm
by frank_frl
Hi Eran,

here the structure on my local drive:

Code: Select all

E:.
+---include
¦   +---wx
¦       +---treemultictrl
¦       +---wxFlatNotebook
+---lib
+---src
    +---des
    ¦   +---Debug
    ¦   +---Release
    +---flatnotebook
    ¦   +---Debug
    ¦   +---Release
    +---frlconfig
    ¦   +---Debug
    ¦   +---images
    ¦   +---Release
    +---httpengine
    ¦   +---Debug
    ¦   +---Release
    +---mycomps
    ¦   +---Debug
    ¦   +---Release
    ¦   +---res
    +---plotter
        +---Debug
        +---html
        +---Release
        +---res

E:\WxWindows\projects_gnu\MyLibs>
The image is the structure in SVN:

All files in the src folder work fine, but those in the include folder not that's very strange.

Re: Header not marked as changed

Posted: Fri Aug 22, 2008 11:56 pm
by eranif
One more question: where is the project located? I mean under which directory?

Eran

Re: Header not marked as changed

Posted: Sat Aug 23, 2008 1:27 am
by frank_frl
eranif wrote:One more question: where is the project located? I mean under which directory?

Eran
E:\WxWindows\projects_gnu\MyLibs

Re: Header not marked as changed

Posted: Sat Aug 23, 2008 1:42 am
by eranif
I tried to reproduce it, still with no luck, I tried to copy your SVN directory structure with no luck.

Here is my directory layout:
Image

After modifying the header file and refreshing the SVN icon:
Image

I will try and build a special SVN plugin with logging capabilities that you can run and send me the output.

Eran