sharptooth
sharptooth

Reputation: 170499

Can I create a patch for unversioned files with Tortoise SVN?

I'd like to create a patch reflecting changes to an unversioned file. I have both "before change" and "after change" versions and Tortoise Diff is happy to compare them. Can I also make a patch reflecting those changes with Tortoise SVN?

Upvotes: 2

Views: 3320

Answers (2)

Sven Lilienthal
Sven Lilienthal

Reputation: 6494

I have TortoiseSVN installed and if I select to show unversioned files, I can select Diff from the context menu. This will open WinMerge, where I can choose "Tools"->"Generate Patch" to create a Diff-file.

Update: Just tested without WinMerge. If you choose two files, Diff open TortoiseMerge, where you can choose "Edit"->"Create unified diff file".

Upvotes: 5

Alistair Sutherland
Alistair Sutherland

Reputation: 1361

  1. In Windows Explorer right click on your svn working copy directory.
  2. Select TortoiseSvn -> Create Patch.
  3. Select 'Show Unversioned Files' checkbox.
  4. Select the files to include and press OK.

(this was with TortoiseSVN 1.6.5, Build 16974 - 32 Bit)

Upvotes: 5

Related Questions