Issue 90: Full change log doesn't work for mercurial
This commit is contained in:
parent
1c563f340b
commit
420d4fdd26
@ -512,11 +512,18 @@ class IDF_Scm_Mercurial extends IDF_Scm
|
|||||||
// hg accepts revision IDs as arguments to --branch / -b as well and
|
// hg accepts revision IDs as arguments to --branch / -b as well and
|
||||||
// uses the branch of the revision in question to filter the other
|
// uses the branch of the revision in question to filter the other
|
||||||
// revisions
|
// revisions
|
||||||
|
if ($n) {
|
||||||
$cmd = sprintf(Pluf::f('hg_path', 'hg').' log --debug -R %s -l%s --style %s -b %s',
|
$cmd = sprintf(Pluf::f('hg_path', 'hg').' log --debug -R %s -l%s --style %s -b %s',
|
||||||
escapeshellarg($this->repo),
|
escapeshellarg($this->repo),
|
||||||
$n,
|
$n,
|
||||||
escapeshellarg($logStyle->get()),
|
escapeshellarg($logStyle->get()),
|
||||||
escapeshellarg($commit));
|
escapeshellarg($commit));
|
||||||
|
} else {
|
||||||
|
$cmd = sprintf(Pluf::f('hg_path', 'hg').' log --debug -R %s --style %s -b %s',
|
||||||
|
escapeshellarg($this->repo),
|
||||||
|
escapeshellarg($logStyle->get()),
|
||||||
|
escapeshellarg($commit));
|
||||||
|
}
|
||||||
$out = array();
|
$out = array();
|
||||||
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
|
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
|
||||||
self::exec('IDF_Scm_Mercurial::getChangeLog', $cmd, $out);
|
self::exec('IDF_Scm_Mercurial::getChangeLog', $cmd, $out);
|
||||||
|
@ -524,8 +524,13 @@ class IDF_Scm_Svn extends IDF_Scm
|
|||||||
$rev = 'HEAD';
|
$rev = 'HEAD';
|
||||||
}
|
}
|
||||||
$res = array();
|
$res = array();
|
||||||
|
if ($n) {
|
||||||
$cmd = $this->svnCmd(array('log', '--xml', '-v', '--limit', $n),
|
$cmd = $this->svnCmd(array('log', '--xml', '-v', '--limit', $n),
|
||||||
$this->repo.'@'.$rev);
|
$this->repo.'@'.$rev);
|
||||||
|
} else {
|
||||||
|
$cmd = $this->svnCmd(array('log', '--xml', '-v'),
|
||||||
|
$this->repo.'@'.$rev);
|
||||||
|
}
|
||||||
$xmlRes = self::shell_exec('IDF_Scm_Svn::getChangeLog', $cmd);
|
$xmlRes = self::shell_exec('IDF_Scm_Svn::getChangeLog', $cmd);
|
||||||
$xml = simplexml_load_string($xmlRes);
|
$xml = simplexml_load_string($xmlRes);
|
||||||
foreach ($xml->logentry as $entry) {
|
foreach ($xml->logentry as $entry) {
|
||||||
|
Loading…
Reference in New Issue
Block a user