Changeset 5 for trunk/Units/UVCS.pas


Ignore:
Timestamp:
Sep 1, 2014, 7:26:35 PM (10 years ago)
Author:
chronos
Message:
  • Added: Form for console window. Working copy actions will call command line tool to perform operation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Units/UVCS.pas

    r4 r5  
    1616    FPath: string;
    1717    procedure SetPath(AValue: string);
     18  protected
     19    procedure Execute(Command: string); virtual;
    1820  public
    1921    procedure Checkout; virtual;
     
    3436implementation
    3537
     38uses
     39  UFormConsole;
    3640
    3741{ TWorkingCopy }
     
    3943procedure TWorkingCopy.SetPath(AValue: string);
    4044begin
    41   if FPath=AValue then Exit;
     45  if FPath = AValue then Exit;
    4246  FPath := AValue;
    4347  Refresh;
     48end;
     49
     50procedure TWorkingCopy.Execute(Command: string);
     51begin
     52  FormConsole.Executable := 'svn';
     53  FormConsole.Parameters.Add(Command);
     54  FormConsole.WorkingDir := Path;
     55  FormConsole.Perform;
    4456end;
    4557
Note: See TracChangeset for help on using the changeset viewer.