sharptooth
sharptooth

Reputation: 170549

How do I commit two changes to the same file separately in Tortoise SVN?

Consider a situation: I've made multiple changes to one versioned file and want to commit the changes. Now I realise that they'd better be committed as two separate commits - so that some changes belong to one changeset and others - to another. How can I do that most efficiently?

Upvotes: 2

Views: 142

Answers (2)

Johannes Rudolph
Johannes Rudolph

Reputation: 35761

It depends on whether TortoiseSvn supports Hunk selection. TortoiseHg (for mercurial) does, so I assume Tortoisesvn does so too.

Upvotes: 0

Aaron Digulla
Aaron Digulla

Reputation: 328800

Copy the file, use svn diff to undo the changes for the second changeset, commit the modified file with the first changeset, copy the file back, commit second changeset.

Upvotes: 3

Related Questions