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

[TSVN] Patch for single file / regression?

From: Stefan Hoffmeister <google.groups_at_arcor.de>
Date: 2005-10-04 10:34:53 CEST

Looking at

  http://tortoisesvn.berlios.de/issues/index.php?do=details&id=135

it seems that as of revision 4242 it should be possible to select a single file as the target for a create patch operation from the shell extension.

While I can achieve the equivalent of this from within the "Create Patch" dialog (browse up one directory, Create Patch, deselect everything, select just the one file), I wonder whether it would be beneficial to also have "Create Patch" and "Apply Patch" menu items on each individual file?

Use case: I just modified vss2svn.pl to work with the SWIG binding and TortoiseSVN - and I really just want to send these changes onwards (in case anyone is interested - reproduced below ;-)).

Am I making sense with this suggestion?

Best regards
Stefan

********
Index: vss2svn.pl
===================================================================
--- vss2svn.pl (revision 56)
+++ vss2svn.pl (working copy)
@@ -800,7 +800,7 @@
 
     PrintMsg " Checking out working copy...\n";
     # pull down the working copy
- $SVNClient->checkout($gCfg{svnrepo}, '.', 'HEAD', 1);
+ $SVNClient->checkout($gCfg{svnrepo}, Cwd::getcwd(), 'HEAD', 1);
 }
 
 ###############################################################################
@@ -980,7 +980,7 @@
             
             my $ciRevision;
             if (!defined $commit_val || $commit_val->revision() == $SVN::Core::INVALID_REVNUM) {
- $ciRevision = GetSvnInfo('.');
+ $ciRevision = GetSvnInfo(Cwd::getcwd());
                 if (!defined $ciRevision) {
                     die "GetSvnInfo failed, bailing";
                 }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Oct 4 10:35:17 2005

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

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