Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r36 - branches/SOPTIM/src/tsvnWizard.pas

delphiaddinfortortoisesvn
Discussion topic

Back to topic list

svn commit: r36 - branches/SOPTIM/src/tsvnWizard.pas

Author otto_noll
Full name Otto Noll
Date 2009-01-05 07:31:31 PST
Message Author: otto_noll
Date: 2009-01-05 07:31:30-0800
New Revision: 36

Modified:
   branches/SOPTIM/src/​tsvnWizard.pas

Log:
Add "Branch" to context menu

Modified: branches/SOPTIM/src/​tsvnWizard.pas
Url: http://delphiaddinfo​rtortoisesvn.tigris.​org/source/browse/de​lphiaddinfortortoise​svn/branches/SOPTIM/​src/tsvnWizard.pas?v​iew=diff&pathrev​=36&r1=35&r2​=36
====================​====================​====================​==================
--- branches/SOPTIM/src/​tsvnWizard.pas (original)
+++ branches/SOPTIM/src/​tsvnWizard.pas 2009-01-05 07:31:30-0800
@@ -20,6 +20,7 @@
         SVN_ABOUT,
         SVN_ADD,
         SVN_BLAME,
+ SVN_BRANCH,
         SVN_DIFF
     );
 type TTortoiseSVN = class(TNotifierObject, IOTANotifier, IOTAWizard)
@@ -239,12 +240,14 @@
     (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_DIFF)​)) as TMenuItem).Enabled := false;
     (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_BLAME​))) as TMenuItem).Enabled := false;
     (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_ADD))​) as TMenuItem).Enabled := false;
+ (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_BRANC​H))) as TMenuItem).Enabled := false;
     GetCurrentModuleFile​List(files);
     if files.Count > 0 then
     begin
       (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_DIFF)​)) as TMenuItem).Enabled := true;
       (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_ADD))​) as TMenuItem).Enabled := true;
       (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_BLAME​))) as TMenuItem).Enabled := true;
+ (submenu.FindCompone​nt('ESVNFeature_'+in​ttostr(ord(SVN_BRANC​H))) as TMenuItem).Enabled := true;
     end;
 end;
 
@@ -287,6 +290,8 @@
             Result:= 'add';
         SVN_BLAME:
             Result:= 'blame';
+ SVN_BRANCH:
+ Result:= 'copy';
     end;
 end;
 
@@ -319,6 +324,8 @@
             Result:= 'Add...';
         SVN_BLAME:
             Result:= 'Blame...';
+ SVN_BRANCH:
+ Result:= 'Branch/Tag...';
     end;
 end;
 
@@ -344,6 +351,8 @@
             ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
         SVN_BLAME:
             ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
+ SVN_BRANCH:
+ ;// this verb state is updated by TTortoiseSVN.CheckOn_Popup
         SVN_UPDATE_TO_SANDBOX:
             if GetCurrentProject <> nil then
                 Result:= vsEnabled;
@@ -401,6 +410,14 @@
                 end;
               end;
             end;
+ SVN_BRANCH:
+ if project <> nil then
+ begin
+ if GetCurrentModuleFile​List(TStringList.cre​ate).Count > 1 then
+ TSVNExec( '/command:copy /notempfile /path:' + AnsiQuotedStr( ExtractFileName(GetC​urrentModuleFileList​(TStringList.create)​[0] ), '"' ) )
+ else if GetCurrentModuleFile​List(TStringList.cre​ate).Count = 1 then
+ TSVNExec( '/command:copy /notempfile /path:' + AnsiQuotedStr(GetCur​rentModuleFileList(T​StringList.create)[0​], '"' ) );
+ end;
         SVN_BLAME:
             if project <> nil then
             begin

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r36 - branches/SOPTIM/src/tsvnWizard.pas otto_noll Otto Noll 2009-01-05 07:31:31 PST
Messages per page: