Commits

Anonymous committed 977a1be

* Remove all require and include statements for Composer's sake.

Comments (0)

Files changed (33)

src/VersionControl/Hg.php

  * @filesource
  */
 
+/* Uses Composer's autoloading feature, conforming to PSR-0: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md */
 require_once __DIR__ . '/../../vendor/autoload.php';
 
 /**
- * Provides the base exception
- */
-//require_once 'Hg/Exception.php';
-
-/**
- * Provides access to the Mercurial executable
- */
-//require_once 'Hg/Executable.php';
-
-/**
- * Provides access to the SCM repository
- */
-//require_once 'Hg/Container/Repository.php';
-
-/**
- * Interfaces with the classes which implement the commands
- */
-//require_once 'Hg/CommandProxy.php';
-
-/**
  * Base class to begin the fluent API
  *
  * This package interfaces with the Mercurial command-line binary, which

src/VersionControl/Hg/Command/Abstract.php

  */
 
 /**
- *  Include custom exception object
- */
-require_once 'Exception.php';
-
-/**
- * Include optional formatting for XML, JSON, etc.
- */
-require_once 'Output/Formatter.php';
-
-/**
  * Gathers common code needed by all Command implementations
  *
  * implements the following global options:

src/VersionControl/Hg/Command/Add.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Add file(s) to a repository
  *
  * Usage:

src/VersionControl/Hg/Command/Archive.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Exports repository to a (optionally compressed) archive file.
  *
  * Usage:

src/VersionControl/Hg/Command/Backout.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Backout of a recent revision to a repository
  *
  * Usage:

src/VersionControl/Hg/Command/Branch.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Forks code into a branch in a repository
  *
  * Usage:

src/VersionControl/Hg/Command/Bundle.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Cat.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
- * Provides an output formatter
- */
-require_once 'Output/Formatter.php';
-
-/**
  * Print the contents of a file from a specific revision
  *
  * Usage:

src/VersionControl/Hg/Command/Clone.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Clone a repository to a destination
  *
  * Usage:

src/VersionControl/Hg/Command/Commit.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Copy.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Diff.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Produces a diff
  *
  * Usage:

src/VersionControl/Hg/Command/Export.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Forget.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Identify.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Import.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Import a set of patches into a repository
  *
  *

src/VersionControl/Hg/Command/Init.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Exports repository to a (optionally compressed) archive file.
  *
  * Usage:

src/VersionControl/Hg/Command/Log.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands
- */
-require_once 'Exception.php';
-
-/**
  * Implements the log command.
  *
  * The hg command-line client also uses 'history' as an alias.

src/VersionControl/Hg/Command/Manifest.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Patch.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Pull.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Pull changesets from a remote repository
  *
  * Usage:

src/VersionControl/Hg/Command/Push.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Remove.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Rename.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Revert.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Status.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Implements the status command.
  *
  * The codes used to show the status of files are:

src/VersionControl/Hg/Command/Tag.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Unbundle.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
  * Bundle changeset(s) to a file
  *
  * Usage:

src/VersionControl/Hg/Command/Version.php

  */
 
 /**
- * Provides the required interface for all commands
- */
-require_once 'Interface.php';
-
-/**
- * Provides base functionality common to all commands
- */
-require_once 'Abstract.php';
-
-/**
- * Provides Exceptions for commands (VersionControl_Hg_Command_Exception)
- */
-require_once 'Exception.php';
-
-/**
- * Provides an output formatter
- */
-require_once 'Output/Formatter.php';
-
-/**
  * Print the version of the HG executable in use
  *
  * Usage:

src/VersionControl/Hg/CommandProxy.php

  */
 
 /**
- * Include the Exception class manually.
- */
-require_once 'Exception.php';
-
-/**
  * Instantiates the Mercurial command and passes an instance of
  * VersionControl_Hg into the constructor of each command.
  *
 
         $class = 'VersionControl_Hg_Command_' . ucfirst($method);
 
-        /* We don't want relative paths because of Php's seemingly odd
-         * handling of relative includes within includes */
-        include_once dirname(__FILE__) . '/Command/' . ucfirst($method) . ".php";
-
         /* this tests only if the class exists in the included file */
         if ( ! class_exists($class, false) ) {
             throw new VersionControl_Hg_Exception(

src/VersionControl/Hg/Container/Bundle.php

  */
 
 /**
- * Provides the abstraction for containers
- */
-require_once 'Abstract.php';
-
-/**
- * Provides the container interface
- */
-require_once 'Interface.php';
-
-/**
- * Provides the container exception
- */
-require_once 'Repository/Exception.php';
-
-/**
  * A bundle of Mercurial revisions/changesets
  *
  * This class is used by the 'bundle' command and represents the actual bundle

src/VersionControl/Hg/Container/Repository.php

  */
 
 /**
- * Provides the abstraction for containers
- */
-require_once 'Abstract.php';
-
-/**
- * Provides the container interface
- */
-require_once 'Interface.php';
-
-/**
- * Provides the container exception
- */
-require_once 'Repository/Exception.php';
-
-/**
  * The Mercurial repository
  *
  * Usage:

src/VersionControl/Hg/Container/WorkingCopy.php

  */
 
 /**
- * Provides the abstraction for containers
- */
-require_once 'Abstract.php';
-
-/**
- * Provides the container interface
- */
-require_once 'Interface.php';
-
-/**
- * Provides the container exception
- */
-require_once 'WorkingCopy/Exception.php';
-
-/**
  * A bundle of Mercurial revisions/changesets
  *
  * This class is used by the 'bundle' command and represents the actual bundle