This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » General discussion » Which of the Symfony-directories to exclude from versioning with a SCM-tool?
icon5.gif  Which of the Symfony-directories to exclude from versioning with a SCM-tool? [message #97364] Wed, 14 April 2010 17:58 Go to next message
Corvinian
Messages: 22
Registered: June 2008
Location: Europe
Junior Member
Which of the Symfony-directories can I exclude from versioning with a SCM-tool?

the 'log/', 'cache/' for sure

and partially the 'lib/' directory, but what do I need?
I believe all non-customized classes can be regenerated,
so it shouldn't be versioned.

What/how shoud I exclude from versioning with Mercurial?

Thanks
Re: Which of the Symfony-directories to exclude from versioning with a SCM-tool? [message #97383 is a reply to message #97364 ] Wed, 14 April 2010 19:08 Go to previous messageGo to next message
hsostock  is currently offline hsostock
Messages: 96
Registered: November 2009
Member
In my opinion, I would keep the base classes versioned. If you remove the base classes from version control, every time you clone from the repository, you will need to manually generate them in order for your project to run. By contrast, the log and cache folders will auto-generate any necessary files without any user intervention. The only advantage I can think of wouuld be an (arguably) minor space savings on your repository, but your model classes constitute a relatively small portion of the overall project size.

Personally, I only ignore the lib/ and cache/ folders (as well as any other unrelated files, e.g. IDE files, .htaccess, etc), and it has worked well for me.

Cheers,

Hale

[Updated on: Wed, 14 April 2010 19:08]

Re: Which of the Symfony-directories to exclude from versioning with a SCM-tool? [message #97415 is a reply to message #97364 ] Thu, 15 April 2010 09:25 Go to previous messageGo to next message
stunami  is currently offline stunami
Messages: 26
Registered: May 2007
Location: UK
Junior Member
You'll probably want add web/upload too and any others with uploads
Re: Which of the Symfony-directories to exclude from versioning with a SCM-tool? [message #97597 is a reply to message #97364 ] Mon, 19 April 2010 11:05 Go to previous message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Yes, initially I ignored all Propel-generated classes, but now we're switching to svn-based deploys, we've added these to the repo. It doesn't feel quite right to store generated files in the repo, but on the other hand, it is better to do this than to re-generate these classes on a live server.


Remember Palestine
Previous Topic:strange title coming up in google search results cached page ??? !!!
Next Topic:Include css/javascripts in view.yml or directly in the view template
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software