Esempio n. 1
0
 /// <summary>
 /// Create the command object that will be used to act on the repository.
 /// </summary>
 /// <returns>The command object that will be used to act on the
 ///     repository.</returns>
 /// <exception cref="Exception">TODO: Make a more specific exception</exception>
 /// <exception cref="NotImplementedException">If the command argument
 ///     is not implemented currently.  TODO: Implement the argument.</exception>
 public override ICommand CreateCommand()
 {
     ICSharpCode.SharpCvsLib.Commands.InitCommand initCommand;
     try {
         CurrentWorkingDirectory = new WorkingDirectory(this.cvsRoot,
                                                        null, null);
         // Create new InitCommand object
         initCommand = new ICSharpCode.SharpCvsLib.Commands.InitCommand(this.cvsRoot);
     }
     catch (Exception e) {
         LOGGER.Error(e);
         throw e;
     }
     return(initCommand);
 }
 /// <summary>
 /// Create the command object that will be used to act on the repository.
 /// </summary>
 /// <returns>The command object that will be used to act on the
 ///     repository.</returns>
 /// <exception cref="Exception">TODO: Make a more specific exception</exception>
 /// <exception cref="NotImplementedException">If the command argument
 ///     is not implemented currently.  TODO: Implement the argument.</exception>
 public override ICommand CreateCommand () {
     ICSharpCode.SharpCvsLib.Commands.InitCommand initCommand;
     try {
         CurrentWorkingDirectory = new WorkingDirectory( this.cvsRoot,
             null, null);
         // Create new InitCommand object
         initCommand = new ICSharpCode.SharpCvsLib.Commands.InitCommand( this.cvsRoot );
     }
     catch (Exception e) {
         LOGGER.Error (e);
         throw e;
     }
     return initCommand;
 }