Esempio n. 1
0
BazaarLog::BazaarLog(const std::string& logfile) : RCommitLog(logfile) {

    log_command = gGourceBzrLogCommand();

    //can generate log from directory
    if(!logf && is_dir) {
        logf = generateLog(logfile);

        if(logf) {
            success  = true;
            seekable = true;
        }
    }
}
Esempio n. 2
0
MercurialLog::MercurialLog(std::string logfile) : RCommitLog(logfile) {

    log_command = gGourceMercurialCommand();

    //can generate log from directory
    if(!logf && is_dir) {
        logf = generateLog(logfile);

        if(logf) {
            success  = true;
            seekable = true;
        }
    }
}
Esempio n. 3
0
GitCommitLog::GitCommitLog(std::string logfile) : RCommitLog(logfile, 'u') {

    log_command = gGourceGitLogCommand;

    //can generate log from directory
    if(!logf && is_dir) {
        logf = generateLog(logfile);

        if(logf) {
            success  = true;
            seekable = true;
        }
    }
}
Esempio n. 4
0
SVNCommitLog::SVNCommitLog(const std::string& logfile) : RCommitLog(logfile, '<') {

    log_command = logCommand();

    //can generate log from directory
    if(!logf && is_dir) {
        logf = generateLog(logfile);

        if(logf) {
            success  = true;
            seekable = true;
        }
    }

    logentry.reserve(1024);
}
Esempio n. 5
0
GitCommitLog::GitCommitLog(const std::string& logfile) : RCommitLog(logfile, ".git", 'u') {

    log_command = gGourceGitLogCommand;

    if(gGourceSettings.git_branch.size()>0) {
        log_command += " ";
        log_command += gGourceSettings.git_branch;
    }

    //can generate log from directory
    if(!logf && is_dir) {
        logf = generateLog(this->logfile);

        if(logf) {
            success  = true;
            seekable = true;
        }
    }
}