svn and Flex, hiding folders
Sunday, August 3rd, 2008
I found that after working for a day with Flex and commiting my changes to subversion that the bin-debug folder had a ‘S’ status code next to it. This one was unfamiliar to me, but after looking it up it seems like it’s a code for “traversing branches” or that you’ve (s)witched your working copy to a new branch. Apparently, since html-template is used to publish to bin-debug, the .svn files in bin-debug are being overwritten (and seems to modify them to look like a switch).
To avoid this conflict, you just do not want the two folders to be included under version control. To “ignore” them when you commit your changes, modify the svn:ignore property (in this case I’ve cd‘ed into my Flex project directory that contains ‘bin-debug’ using Terminal):
svn propedit svn:ignore .
The EDITOR property of your shell should open a file. My EDITOR is set to 'mate -w' (open the file with TextMate and wait for it to close)…in the file you want to add these two lines:
bin-debug html-template
There may be other directories and files to include after publishing the release build, but I haven’t reached that stage in my project quite yet. Anyway, once saved and closed it outputs:
Set new value for property 'svn:ignore' on '.'
In a GUI such as Zigversion, you can right-click your project directory, select “Ignore Properties…” and add the same two lines using the ‘+’ button.
Hiding .svn files in Flex Builder
This may sound silly, but Eclipse is so unintuitive, it took me a while to figure out how to accomplish hiding typically hidden files in the ‘Flex Navigator’ panel. Click on the downwards pointing arrow (third from the right)
and select “Filters…”. Then check the box next to “.*”. Now any hidden files will be not shown. If anyone has any ideas how to customize these filters, please let me know.
UPDATE: just found this awesome post which had some solutions for still including the bin-debug and html-template folders!