Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 204411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:27:55+00:00 2026-05-11T17:27:55+00:00

We have a web application framework that we want to use with Subversion. We’ve

  • 0

We have a web application framework that we want to use with Subversion. We’ve tried a couple of times before to set it up, but the code generation part of our application is causing problems.

The problem is that the generated code from one developer can be in a newer file than from another developer, but the content of the newer file can be older, because the code and xml files that are the basis for the code generation has been update by developer nr2.

One solution we’ve looked at is to exclude the code generated files, but we often get new files that are generated, and they are automatically added to the repository unless we remember to exclude it, and we have to manually check in the latest generated files. And how do you know if you have the latest generated file?

Any suggestion on how to solve this in Subversion?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:27:55+00:00Added an answer on May 11, 2026 at 5:27 pm

    The best way to decide to whether something should be in Subversion is to remember that it’s a version control system. If you don’t need to remember how it changed over time, it doesn’t need to be in svn. Use svn:ignore to exclude files from such consideration.

    That’s the case here: you don’t care how the generated files changed over time, only the original code used to produce them. That means they should be excluded from Subversion. You can do this with a pre-commit hook — enforcing, for example, that all code-generated files shouldn’t ever be committed. I have a favorite phrase for this tactic: “Version the recipe, not the cake.”

    And how do you know if you have the latest generated file?

    Exactly; you don’t, because the generated files were dependent on the source used to create them. Your next step is to make sure that your build process automatically generates these files given the initial source code, but that’s probably a separate StackOverflow question if you don’t know how to do that already.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application that use Sring IoC framework. I use the Java
I have a web application that uses the Spring Framework (3.1) and persistence through
I have a j2ee web application running on Spring framework. I want to implement
I want to use a javascript framework with MVC for a complex web application
In my web application, I create some framework that use to bind model data
I have a web application that is using Entity Framework to query a SQL
I have this web application that has grown to an unmanageable mess. I want
I have a web application based on the sharp-architecture framework. It actually use NHibernate
I use Zend Framework in my web application. I have the next URL: domain/user/user/username
I have the following scenario. I have created an ASP.NET web application (framework 3.5)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.