$this->crumbs = array();
$location = '';
$this->basename = basename($this->filename);
- $crumbs = dirname($this->filename) == '.' ? array() : explode('/', dirname($this->filename));
- var_dump($this->filename);
- array_unshift($crumbs,'');
+ $crumbs = dirname($this->filename) == '.' || !strlen(dirname($this->filename)) ?
+ array() : explode('/', dirname($this->filename));
+
foreach($crumbs as $path)
{
$last_day = null;
$even = 1;
-
- $hist = $this->repo->history($this->filename, 100, $object, $ident);
-
-
+ $offset= empty($_GET['offset']) ? 0 : (int) $_GET['offset'];
+ $this->offset = $offset+100;
+ $hist = $this->repo->history($this->filename, array($offset,100), $object, $ident);
if (empty($hist)) {
return; // an error conditon!?!
}
- $this->rev = $hist[0]->rev;
+ $this->rev = $hist[0]->rev;
+ if (count($hist) < 100) {
+ $this->offset = 0;
+ }
// code here...
// repo has a 'release' branch, this should be used to track what needs
// merging from 'HEAD' to update it
$last_day = $day;
$M = array();
- if (preg_match('/#([0-9]+)\s+/', $h->changelog, $M)) {
+ // if (preg_match('/#([0-9]+)\s+/', $h->changelog, $M)) {
- $h->ticket = MTrackIssue::loadByNSIdent($M[1]) ;
+ // $h->ticket = MTrackIssue::loadByNSIdent($M[1]) ;
// ticket->status == closed == ok to commit to another branch...
// echo '<PRE>'; print_r($h->ticket);
- }
+ // }