[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Committing only some changes in a file

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-11-19 16:03:29 CET

On 19/11/2007, Häberling Armin <arminha@student.ethz.ch> wrote:
> I have the following problem. I have a working copy of a file and made some changes. Now I'd like to commit some of the changes, but not all.
> AFAIK tortoise svn does not support that such a partial commit - please correct me if I'm wrong. So my approach for this was to manually undo the changes, I don't want to commit, then commit the file, and redo the changes. This is feasible only if the changeset I don't want to commit is small.
>
> What I'd like to hear is if anyone has a better solution for that?

No there is no better solution in Subversion. You commit a file, so
all changes in that file are always included.

If I am ever in that situation I make a backup copy of the file, then
use TortoiseMerge to undo the bits I don't want in the first commit.
After I have committed the first set of changes, I overwrite the
partly undone file with my backup and commit again to get the rest of
the changes.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Mon Nov 19 16:03:37 2007

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.