function __construct($repo)
 {
     $current_user =& singleton("current_user");
     $this->name = "hg ";
     $this->repodir = $repo;
     $this->repoprefix = " --cwd '" . $repo . "' ";
     $this->commit = " commit --user='******' -m ";
     $this->metadir = ".hg";
     $this->add_everything = " add ";
     $this->cat = ' cat -r %2$s %1$s ';
     /* 
     author String. The unmodified author of the changeset. 
     branches String. The name of the branch on which the changeset was committed. Will be empty if the branch name was default. 
     date Date information. The date when the changeset was committed. This is not human-readable; you must pass it through a filter that will render it appropriately. See section 11.6 for more information on filters. The date is expressed as a pair of numbers. The first number is a Unix UTC timestamp (seconds since January 1, 1970); the second is the offset of the committer’s timezone from UTC, in seconds. 
     desc String. The text of the changeset description. 
     files List of strings. All files modified, added, or removed by this changeset. 
     filet4ht@95xadds List of strings. Files added by this changeset. 
     filet4ht@95xdels List of strings. Files removed by this changeset. 
     node String. The changeset identification hash, as a 40-character hexadecimal string. 
     parents List of strings. The parents of the changeset. 
     rev Integer. The repository-local changeset revision number. 
     tags List of strings. Any tags associated with the changeset.
     */
     $this->log = " log --template 'Hash: {node}\nAuthor: {author}\nDate: {date}\nMsg: {desc}\n' ";
     parent::__construct($repo);
 }
Exemple #2
0
 function __construct($repo)
 {
     $current_user =& singleton("current_user");
     $this->name = "darcs ";
     $this->repodir = $repo;
     $this->repoprefix = " --repodir=" . $repo . " ";
     $this->commit = " rec --author=" . escapeshellarg($current_user->get_name() . " <" . $current_user->get_value("emailAddress") . ">") . " --all -m ";
     $this->log = " changes --xml-output ";
     $this->metadir = "_darcs";
     $this->add_everything = " add -r . ";
     $this->cat = ' show contents %1$s --match %2$s ';
     parent::__construct($repo);
 }
Exemple #3
0
 function __construct($repo)
 {
     $current_user =& singleton("current_user");
     //$this->debug = true;
     $this->name = "git ";
     $this->repodir = $repo;
     $this->repoprefix = " --git-dir '" . $repo . ".git' --work-tree '" . $repo . "' ";
     $this->commit = " commit --author '" . $current_user->get_name() . " <" . $current_user->get_value("emailAddress") . ">' -m ";
     $this->metadir = ".git";
     $this->add_everything = " add " . $repo . "/. ";
     $this->log = " log --pretty=format:'Hash: %H%nAuthor: %an%nDate: %ct%nMsg: %s' -M -C --follow ";
     $this->cat = ' show %2$s:%3$s ';
     parent::__construct($repo);
 }