How can I use SVN to manage my Firefox extension project?

I am using SVN to manage my Firefox extension project and this project contains an XPCOM component. Firefox loads directly from my working directory by placing a text file with the working directory in the directory. / extensions of my user profile. When Firefox starts up, my extension won't load and overlap; after looking at the error console, I can see that this error states that ".svn cannot be loaded as a component" is a reference to the .svn directory in my "components" directory of the plugin structure. Is there a way to get Firefox to ignore this directory, or get SVN to create a working copy without the .svn directories?

+2


a source to share


4 answers


The only thing I suggest is creating build scripts that deploy your files (sans.svn) to the Firefox extensions folder. Not ideal, but you should be able to piece something together that only takes a few seconds to launch and can be launched with a keyboard shortcut (or for bonus points, by keeping track of the files in your working copy and updating your firefox folder whenever they get saved)



0


a source


Is there a way to make Firefox ignore this directory

Maybe...



or get SVN to create a working copy with no .svn directories in it

No. This is how SVN works. these directories store canges and meta information for svn. They are needed to make the fixation out of your closet.

0


a source


It might be too late to suggest this, but you won't run into any of these problems with Mercurial, since you have one directory in your root folder - .hg

- instead of the clutter of .svn directories like you do with Subversion. Other benefits include decent file ignore via .hgignore, no mysterious config files (one in your user's home directory), renaming, and many other improved features.

Bitbucket provides free hosting.

0


a source


Use the command svn export

to do a (non-renewable) check of your working copy, which does not include the .svn directories.

0


a source







All Articles