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

  • Home
  • SEARCH
  • 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 760037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:40:07+00:00 2026-05-14T15:40:07+00:00

It sometimes happens to me that I forget to include a file in a

  • 0

It sometimes happens to me that I forget to include a file in a changeset (i.e. a commit of a number of changed files that belong together, e.g. “Fixes bug #45”)

I will usually just make a second commit with the same commit message.

Is there a clever and simple way to add the “latecomer” to the first commit somehow? Without svn dumping and svndumpfilter ing?

  • 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-14T15:40:08+00:00Added an answer on May 14, 2026 at 3:40 pm

    No, there isn’t a clever way to add files to a commit in SVN. It’s a side effect of truly atomic commits. Once the commit is completed, it’s complete. It it were any other way, then the commit wouldn’t be atomic, as it would still be waiting for the “latter” files to be added.

    It seems you’ve explored the obvious techniques of rolling back the commit by using “svn dump” and “svn dumpfilter”. The only other options are to grab a backup of the SVN tree “just prior” to making a commit mistakenly. Good luck on your mistake prevention algorithm!

    If you really find it annoying, I guess you could put in a pre-commit hook to make the backup, but that has it’s own issues. You might not recogonize that you forgot the file before someone overwrites the backup, and commits will likely take a long time (due to the backup).

    The best solution seems to be to annotate your commits as being part of the change set for the same bug. That way searching for a fix on the bug will pull up two entries in the log, which basically describes both commits were necessary to “fix” the issue. This can have some impact on integration tools, as if you are using hooks or tools to examine your logs, they should survive multiple commits on a single bug. Often this means a manual update of the bug as “ready to build” because you never know when the bug is fixed by one commit, or if it needs another commit to finish it off due to forgetfulness.

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

Sidebar

Related Questions

Sometimes when I am debugging code in Eclipse it happens that although I can
Sometimes when I'm editing page or control the .designer files stop being updated with
Sometimes I need to quickly extract some arbitrary data from XML files to put
Sometimes I have to work on code that moves the computer clock forward. In
Sometimes I get Oracle connection problems because I can't figure out which tnsnames.ora file
I'm at a loss! It's one of those pesky bugs that happens only under
I have some JavaScript that can appear on many different pages. Sometimes those pages
I have a process that modifies icons on files with an overlay. The Finder,
In my vb program, I have two forms that work together to allow you
I know it happens sometime before Load, but during what event exactly?

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.