All generic Fossil operations are now encapsulated in Workspace
FossilOrigin-Name: b29c19caa92280f7378e78f0febb56fc4fec7b03
This commit is contained in:
@@ -322,7 +322,7 @@ MainWindow::MainWindow(Settings &_settings, QWidget *parent, QString *workspaceP
|
||||
uiCallback.init(this);
|
||||
|
||||
// Need to be before applySettings which sets the last workspace
|
||||
getWorkspace().fossil().Init(&uiCallback, settings.GetValue(FUEL_SETTING_FOSSIL_PATH).toString());
|
||||
getWorkspace().Init(&uiCallback, settings.GetValue(FUEL_SETTING_FOSSIL_PATH).toString());
|
||||
|
||||
applySettings();
|
||||
|
||||
@@ -405,7 +405,7 @@ bool MainWindow::openWorkspace(const QString &path)
|
||||
}
|
||||
|
||||
// Ok open the repository file
|
||||
if(!getWorkspace().fossil().createWorkspace(fi.absoluteFilePath(), wkspace))
|
||||
if(!getWorkspace().createWorkspace(fi.absoluteFilePath(), wkspace))
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not open repository."), QMessageBox::Ok );
|
||||
return false;
|
||||
@@ -511,13 +511,13 @@ void MainWindow::on_actionNewRepository_triggered()
|
||||
// Create repository
|
||||
QString repo_abs_path = repo_path_info.absoluteFilePath();
|
||||
|
||||
if(!getWorkspace().fossil().createRepository(repo_abs_path))
|
||||
if(!getWorkspace().createRepository(repo_abs_path))
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not create repository."), QMessageBox::Ok );
|
||||
return;
|
||||
}
|
||||
|
||||
if(!getWorkspace().fossil().createWorkspace(repo_abs_path, wkdir))
|
||||
if(!getWorkspace().createWorkspace(repo_abs_path, wkdir))
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not open repository."), QMessageBox::Ok );
|
||||
return;
|
||||
@@ -533,14 +533,14 @@ void MainWindow::on_actionNewRepository_triggered()
|
||||
//------------------------------------------------------------------------------
|
||||
void MainWindow::on_actionCloseRepository_triggered()
|
||||
{
|
||||
if(getWorkspace().fossil().getWorkspaceState()!=Fossil::WORKSPACE_STATE_OK)
|
||||
if(getWorkspace().getWorkspaceState()!=Fossil::WORKSPACE_STATE_OK)
|
||||
return;
|
||||
|
||||
if(QMessageBox::Yes !=DialogQuery(this, tr("Close Workspace"), tr("Are you sure you want to close this workspace?")))
|
||||
return;
|
||||
|
||||
// Close Repo
|
||||
if(!getWorkspace().fossil().closeWorkspace())
|
||||
if(!getWorkspace().closeWorkspace())
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Cannot close the workspace.\nAre there still uncommitted changes available?"), QMessageBox::Ok );
|
||||
return;
|
||||
@@ -562,7 +562,7 @@ void MainWindow::on_actionCloneRepository_triggered()
|
||||
|
||||
stopUI();
|
||||
|
||||
if(!getWorkspace().fossil().cloneRepository(repository, url, url_proxy))
|
||||
if(!getWorkspace().cloneRepository(repository, url, url_proxy))
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not clone the repository"), QMessageBox::Ok);
|
||||
return;
|
||||
@@ -693,7 +693,7 @@ bool MainWindow::scanWorkspace()
|
||||
bool valid = true;
|
||||
|
||||
// Load repository info
|
||||
Fossil::WorkspaceState st = getWorkspace().fossil().getWorkspaceState();
|
||||
Fossil::WorkspaceState st = getWorkspace().getWorkspaceState();
|
||||
QString status;
|
||||
|
||||
if(st==Fossil::WORKSPACE_STATE_NOTFOUND)
|
||||
@@ -1456,9 +1456,9 @@ bool MainWindow::diffFile(const QString &repoFile)
|
||||
{
|
||||
const QString &gdiff = settings.GetFossilValue(FOSSIL_SETTING_GDIFF_CMD).toString();
|
||||
if(!gdiff.isEmpty())
|
||||
return getWorkspace().fossil().diffFile(repoFile, true);
|
||||
return getWorkspace().diffFile(repoFile, true);
|
||||
else
|
||||
return getWorkspace().fossil().diffFile(repoFile, false);
|
||||
return getWorkspace().diffFile(repoFile, false);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -1597,7 +1597,7 @@ void MainWindow::on_actionCommit_triggered()
|
||||
if(commit_files.size() != all_modified_files.size())
|
||||
files = commit_files;
|
||||
|
||||
if(!getWorkspace().fossil().commitFiles(files, msg, branch_name, private_branch))
|
||||
if(!getWorkspace().commitFiles(files, msg, branch_name, private_branch))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not commit changes."), QMessageBox::Ok);
|
||||
|
||||
refresh();
|
||||
@@ -1617,7 +1617,7 @@ void MainWindow::on_actionAdd_triggered()
|
||||
return;
|
||||
|
||||
// Do Add
|
||||
if(!getWorkspace().fossil().addFiles(selection))
|
||||
if(!getWorkspace().addFiles(selection))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not add files."), QMessageBox::Ok);
|
||||
|
||||
refresh();
|
||||
@@ -1645,7 +1645,7 @@ void MainWindow::on_actionDelete_triggered()
|
||||
// Remove repository files
|
||||
if(!repo_files.empty())
|
||||
{
|
||||
if(!getWorkspace().fossil().removeFiles(repo_files, remove_local))
|
||||
if(!getWorkspace().removeFiles(repo_files, remove_local))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not remove files."), QMessageBox::Ok);
|
||||
}
|
||||
|
||||
@@ -1676,7 +1676,7 @@ void MainWindow::on_actionRevert_triggered()
|
||||
return;
|
||||
|
||||
// Do Revert
|
||||
if(!getWorkspace().fossil().revertFiles(modified_files))
|
||||
if(!getWorkspace().revertFiles(modified_files))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not revert files."), QMessageBox::Ok);
|
||||
|
||||
refresh();
|
||||
@@ -1707,7 +1707,7 @@ void MainWindow::on_actionRename_triggered()
|
||||
}
|
||||
|
||||
// Do Rename
|
||||
if(!getWorkspace().fossil().renameFile(fi_before.filePath(), fi_after.filePath(), true))
|
||||
if(!getWorkspace().renameFile(fi_before.filePath(), fi_after.filePath(), true))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not rename file '%0' to '%1'").arg(fi_before.filePath(), fi_after.filePath()), QMessageBox::Ok);
|
||||
|
||||
refresh();
|
||||
@@ -1740,7 +1740,7 @@ void MainWindow::on_actionUndo_triggered()
|
||||
QStringList res;
|
||||
|
||||
// Do test Undo
|
||||
if(!getWorkspace().fossil().undoWorkspace(res, true))
|
||||
if(!getWorkspace().undoWorkspace(res, true))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not undo changes."), QMessageBox::Ok);
|
||||
|
||||
if(res.length()>0 && res[0]=="No undo or redo is available")
|
||||
@@ -1750,7 +1750,7 @@ void MainWindow::on_actionUndo_triggered()
|
||||
return;
|
||||
|
||||
// Do Undo
|
||||
if(!getWorkspace().fossil().undoWorkspace(res, false))
|
||||
if(!getWorkspace().undoWorkspace(res, false))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not undo changes."), QMessageBox::Ok);
|
||||
|
||||
refresh();
|
||||
@@ -1759,10 +1759,10 @@ void MainWindow::on_actionUndo_triggered()
|
||||
//------------------------------------------------------------------------------
|
||||
void MainWindow::on_actionAbout_triggered()
|
||||
{
|
||||
QString fossil_ver;
|
||||
getWorkspace().fossil().getExeVersion(fossil_ver);
|
||||
QString version;
|
||||
getWorkspace().getInterfaceVersion(version);
|
||||
|
||||
AboutDialog dlg(this, fossil_ver);
|
||||
AboutDialog dlg(this, version);
|
||||
dlg.exec();
|
||||
}
|
||||
|
||||
@@ -2067,7 +2067,7 @@ void MainWindow::on_actionRenameFolder_triggered()
|
||||
WorkspaceFile *r = files_to_move[i];
|
||||
const QString &new_file_path = new_paths[i] + PATH_SEPARATOR + r->getFilename();
|
||||
|
||||
if(!getWorkspace().fossil().renameFile(r->getFilePath(), new_file_path, false))
|
||||
if(!getWorkspace().renameFile(r->getFilePath(), new_file_path, false))
|
||||
{
|
||||
log(tr("Move aborted due to errors")+"\n");
|
||||
goto _exit;
|
||||
@@ -2207,7 +2207,7 @@ void MainWindow::on_actionCreateStash_triggered()
|
||||
}
|
||||
|
||||
// Do Stash
|
||||
if(!getWorkspace().fossil().stashNew(stashed_files, stash_name, revert))
|
||||
if(!getWorkspace().stashNew(stashed_files, stash_name, revert))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not create stash."), QMessageBox::Ok);
|
||||
|
||||
refresh();
|
||||
@@ -2232,7 +2232,7 @@ void MainWindow::on_actionApplyStash_triggered()
|
||||
stashmap_t::iterator id_it = getWorkspace().getStashes().find(*it);
|
||||
Q_ASSERT(id_it!=getWorkspace().getStashes().end());
|
||||
|
||||
if(!getWorkspace().fossil().stashApply(*id_it))
|
||||
if(!getWorkspace().stashApply(*id_it))
|
||||
{
|
||||
log(tr("Stash application aborted due to errors")+"\n");
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not apply stash."), QMessageBox::Ok);
|
||||
@@ -2246,7 +2246,7 @@ void MainWindow::on_actionApplyStash_triggered()
|
||||
stashmap_t::iterator id_it = getWorkspace().getStashes().find(*it);
|
||||
Q_ASSERT(id_it!=getWorkspace().getStashes().end());
|
||||
|
||||
if(!getWorkspace().fossil().stashDrop(*id_it))
|
||||
if(!getWorkspace().stashDrop(*id_it))
|
||||
{
|
||||
log(tr("Stash deletion aborted due to errors")+"\n");
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not delete stash."), QMessageBox::Ok);
|
||||
@@ -2275,7 +2275,7 @@ void MainWindow::on_actionDeleteStash_triggered()
|
||||
stashmap_t::iterator id_it = getWorkspace().getStashes().find(*it);
|
||||
Q_ASSERT(id_it!=getWorkspace().getStashes().end());
|
||||
|
||||
if(!getWorkspace().fossil().stashDrop(*id_it))
|
||||
if(!getWorkspace().stashDrop(*id_it))
|
||||
{
|
||||
log(tr("Stash deletion aborted due to errors")+"\n");
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not delete stash."), QMessageBox::Ok);
|
||||
@@ -2299,7 +2299,7 @@ void MainWindow::on_actionDiffStash_triggered()
|
||||
Q_ASSERT(id_it!=getWorkspace().getStashes().end());
|
||||
|
||||
// Run diff
|
||||
if(!getWorkspace().fossil().stashDiff(*id_it))
|
||||
if(!getWorkspace().stashDiff(*id_it))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not diff stash."), QMessageBox::Ok);
|
||||
}
|
||||
|
||||
@@ -2459,7 +2459,7 @@ void MainWindow::dropEvent(QDropEvent *event)
|
||||
return;
|
||||
|
||||
// Do Add
|
||||
if(!getWorkspace().fossil().addFiles(newfiles))
|
||||
if(!getWorkspace().addFiles(newfiles))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not add files."), QMessageBox::Ok);
|
||||
|
||||
refresh();
|
||||
@@ -2568,7 +2568,7 @@ void MainWindow::updateRevision(const QString &revision)
|
||||
QStringList res;
|
||||
|
||||
// Do test update
|
||||
if(!getWorkspace().fossil().updateWorkspace(res, selected_revision, true))
|
||||
if(!getWorkspace().updateWorkspace(res, selected_revision, true))
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not update the repository."), QMessageBox::Ok);
|
||||
return;
|
||||
@@ -2588,7 +2588,7 @@ void MainWindow::updateRevision(const QString &revision)
|
||||
return;
|
||||
|
||||
// Do update
|
||||
if(!getWorkspace().fossil().updateWorkspace(res, selected_revision, false))
|
||||
if(!getWorkspace().updateWorkspace(res, selected_revision, false))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not update the repository."), QMessageBox::Ok);
|
||||
|
||||
refresh();
|
||||
@@ -2610,7 +2610,7 @@ void MainWindow::on_actionCreateTag_triggered()
|
||||
return;
|
||||
}
|
||||
|
||||
if(!getWorkspace().fossil().tagNew(name, revision))
|
||||
if(!getWorkspace().tagNew(name, revision))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not create tag."), QMessageBox::Ok);
|
||||
|
||||
refresh();
|
||||
@@ -2631,7 +2631,7 @@ void MainWindow::on_actionDeleteTag_triggered()
|
||||
|
||||
const QString &revision = getWorkspace().getTags()[tagname];
|
||||
|
||||
if(!getWorkspace().fossil().tagDelete(tagname, revision))
|
||||
if(!getWorkspace().tagDelete(tagname, revision))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not delete tag."), QMessageBox::Ok);
|
||||
|
||||
refresh();
|
||||
@@ -2653,7 +2653,7 @@ void MainWindow::on_actionCreateBranch_triggered()
|
||||
return;
|
||||
}
|
||||
|
||||
if(!getWorkspace().fossil().branchNew(branch_name, revision, false))
|
||||
if(!getWorkspace().branchNew(branch_name, revision, false))
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not create branch."), QMessageBox::Ok);
|
||||
return;
|
||||
@@ -2676,7 +2676,7 @@ void MainWindow::mergeRevision(const QString &defaultRevision)
|
||||
return;
|
||||
|
||||
// Do test merge
|
||||
if(!getWorkspace().fossil().branchMerge(res, revision, integrate, force, true))
|
||||
if(!getWorkspace().branchMerge(res, revision, integrate, force, true))
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Merge failed."), QMessageBox::Ok);
|
||||
return;
|
||||
@@ -2686,7 +2686,7 @@ void MainWindow::mergeRevision(const QString &defaultRevision)
|
||||
return;
|
||||
|
||||
// Do update
|
||||
if(!getWorkspace().fossil().branchMerge(res, revision, integrate, force, false))
|
||||
if(!getWorkspace().branchMerge(res, revision, integrate, force, false))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Merge failed."), QMessageBox::Ok);
|
||||
else
|
||||
log(tr("Merge completed. Don't forget to commit!")+"\n");
|
||||
@@ -2776,7 +2776,7 @@ void MainWindow::on_actionPushRemote_triggered()
|
||||
if(!url.isLocalFile())
|
||||
KeychainGet(this, url, *settings.GetStore());
|
||||
|
||||
if(!getWorkspace().fossil().pushWorkspace(url))
|
||||
if(!getWorkspace().pushWorkspace(url))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not push to the remote repository."), QMessageBox::Ok);
|
||||
}
|
||||
|
||||
@@ -2794,7 +2794,7 @@ void MainWindow::on_actionPullRemote_triggered()
|
||||
if(!url.isLocalFile())
|
||||
KeychainGet(this, url, *settings.GetStore());
|
||||
|
||||
if(!getWorkspace().fossil().pullWorkspace(url))
|
||||
if(!getWorkspace().pullWorkspace(url))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not pull from the remote repository."), QMessageBox::Ok);
|
||||
}
|
||||
|
||||
@@ -2813,7 +2813,7 @@ void MainWindow::on_actionPush_triggered()
|
||||
if(!url.isLocalFile())
|
||||
KeychainGet(this, url, *settings.GetStore());
|
||||
|
||||
if(!getWorkspace().fossil().pushWorkspace(url))
|
||||
if(!getWorkspace().pushWorkspace(url))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not push to the remote repository."), QMessageBox::Ok);
|
||||
}
|
||||
|
||||
@@ -2832,7 +2832,7 @@ void MainWindow::on_actionPull_triggered()
|
||||
if(!url.isLocalFile())
|
||||
KeychainGet(this, url, *settings.GetStore());
|
||||
|
||||
if(!getWorkspace().fossil().pullWorkspace(url))
|
||||
if(!getWorkspace().pullWorkspace(url))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not pull from the remote repository."), QMessageBox::Ok);
|
||||
}
|
||||
|
||||
@@ -2856,7 +2856,7 @@ void MainWindow::on_actionSetDefaultRemote_triggered()
|
||||
// so only set the remote url when there is no password set
|
||||
if(url.password().isEmpty())
|
||||
{
|
||||
if(!getWorkspace().fossil().setRemoteUrl(url))
|
||||
if(!getWorkspace().setDefaultRemoteUrl(url))
|
||||
QMessageBox::critical(this, tr("Error"), tr("Could not set the remote repository."), QMessageBox::Ok);
|
||||
}
|
||||
}
|
||||
|
@@ -24,7 +24,7 @@ void Workspace::clearState()
|
||||
getPaths().clear();
|
||||
pathState.clear();
|
||||
stashMap.clear();
|
||||
branchList.clear();
|
||||
branchNames.clear();
|
||||
tags.clear();
|
||||
isIntegrated = false;
|
||||
}
|
||||
@@ -351,12 +351,12 @@ void Workspace::scanWorkspace(bool scanLocal, bool scanIgnored, bool scanModifie
|
||||
// Load the stashes, branches and tags
|
||||
fossil().stashList(getStashes());
|
||||
|
||||
fossil().branchList(branchList, branchList);
|
||||
fossil().branchList(branchNames, branchNames);
|
||||
|
||||
fossil().tagList(tags);
|
||||
// Fossil includes the branches in the tag list
|
||||
// So remove them
|
||||
foreach(const QString &name, branchList)
|
||||
foreach(const QString &name, branchNames)
|
||||
tags.remove(name);
|
||||
|
||||
_done:
|
||||
|
155
src/Workspace.h
155
src/Workspace.h
@@ -144,7 +144,7 @@ public:
|
||||
pathstate_map_t &getPathState() { return pathState; }
|
||||
stashmap_t &getStashes() { return stashMap; }
|
||||
QStringMap &getTags() { return tags; }
|
||||
QStringList &getBranches() { return branchList; }
|
||||
QStringList &getBranches() { return branchNames; }
|
||||
bool otherChanges() const { return isIntegrated; }
|
||||
const QString &getCurrentRevision() const { return fossil().getCurrentRevision(); }
|
||||
const QStringList &getActiveTags() const { return fossil().getActiveTags(); }
|
||||
@@ -159,6 +159,157 @@ public:
|
||||
Remote * findRemote(const QUrl& url);
|
||||
|
||||
void storeWorkspace(QSettings &store);
|
||||
|
||||
// Fossil Wrappers
|
||||
void Init(UICallback *callback, const QString &exePath)
|
||||
{
|
||||
fossil().Init(callback, exePath);
|
||||
}
|
||||
|
||||
bool createWorkspace(const QString &repositoryPath, const QString& workspacePath)
|
||||
{
|
||||
return fossil().createWorkspace(repositoryPath, workspacePath);
|
||||
}
|
||||
|
||||
bool createRepository(const QString &repositoryPath)
|
||||
{
|
||||
return fossil().createRepository(repositoryPath);
|
||||
}
|
||||
|
||||
Fossil::WorkspaceState getWorkspaceState()
|
||||
{
|
||||
return fossil().getWorkspaceState();
|
||||
}
|
||||
|
||||
bool closeWorkspace()
|
||||
{
|
||||
return fossil().closeWorkspace();
|
||||
}
|
||||
|
||||
bool cloneRepository(const QString &repository, const QUrl &url, const QUrl &proxyUrl)
|
||||
{
|
||||
return fossil().cloneRepository(repository, url, proxyUrl);
|
||||
}
|
||||
|
||||
bool pushWorkspace(const QUrl& url)
|
||||
{
|
||||
return fossil().pushWorkspace(url);
|
||||
}
|
||||
|
||||
bool pullWorkspace(const QUrl& url)
|
||||
{
|
||||
return fossil().pullWorkspace(url);
|
||||
}
|
||||
|
||||
bool updateWorkspace(QStringList& result, const QString& revision, bool explainOnly)
|
||||
{
|
||||
return fossil().updateWorkspace(result, revision, explainOnly);
|
||||
}
|
||||
|
||||
bool undoWorkspace(QStringList& result, bool explainOnly)
|
||||
{
|
||||
return fossil().undoWorkspace(result, explainOnly);
|
||||
}
|
||||
|
||||
bool diffFile(const QString &repoFile, bool graphical)
|
||||
{
|
||||
return fossil().diffFile(repoFile, graphical);
|
||||
}
|
||||
|
||||
bool commitFiles(const QStringList &fileList, const QString &comment, const QString& newBranchName, bool isPrivateBranch)
|
||||
{
|
||||
return fossil().commitFiles(fileList, comment, newBranchName, isPrivateBranch);
|
||||
}
|
||||
|
||||
bool addFiles(const QStringList& fileList)
|
||||
{
|
||||
return fossil().addFiles(fileList);
|
||||
}
|
||||
|
||||
bool removeFiles(const QStringList& fileList, bool deleteLocal)
|
||||
{
|
||||
return fossil().removeFiles(fileList, deleteLocal);
|
||||
}
|
||||
|
||||
bool revertFiles(const QStringList& fileList)
|
||||
{
|
||||
return fossil().revertFiles(fileList);
|
||||
}
|
||||
|
||||
bool renameFile(const QString& beforePath, const QString& afterPath, bool renameLocal)
|
||||
{
|
||||
return fossil().renameFile(beforePath, afterPath, renameLocal);
|
||||
}
|
||||
|
||||
// Stashes
|
||||
bool stashNew(const QStringList& fileList, const QString& name, bool revert)
|
||||
{
|
||||
return fossil().stashNew(fileList, name, revert);
|
||||
}
|
||||
|
||||
bool stashList(stashmap_t &stashes)
|
||||
{
|
||||
return fossil().stashList(stashes);
|
||||
}
|
||||
|
||||
bool stashApply(const QString& name)
|
||||
{
|
||||
return fossil().stashApply(name);
|
||||
}
|
||||
|
||||
bool stashDrop(const QString& name)
|
||||
{
|
||||
return fossil().stashDrop(name);
|
||||
}
|
||||
|
||||
bool stashDiff(const QString& name)
|
||||
{
|
||||
return fossil().stashDiff(name);
|
||||
}
|
||||
|
||||
// Tags
|
||||
bool tagList(QStringMap& tags)
|
||||
{
|
||||
return fossil().tagList(tags);
|
||||
}
|
||||
|
||||
bool tagNew(const QString& name, const QString& revision)
|
||||
{
|
||||
return fossil().tagNew(name, revision);
|
||||
}
|
||||
|
||||
bool tagDelete(const QString& name, const QString& revision)
|
||||
{
|
||||
return fossil().tagDelete(name, revision);
|
||||
}
|
||||
|
||||
// Branches
|
||||
bool branchList(QStringList& branches, QStringList& activeBranches)
|
||||
{
|
||||
return fossil().branchList(branches, activeBranches);
|
||||
}
|
||||
|
||||
bool branchNew(const QString& name, const QString& revisionBasis, bool isPrivate=false)
|
||||
{
|
||||
return fossil().branchNew(name, revisionBasis, isPrivate);
|
||||
}
|
||||
|
||||
bool branchMerge(QStringList& res, const QString& revision, bool integrate, bool force, bool testOnly)
|
||||
{
|
||||
return fossil().branchMerge(res, revision, integrate, force, testOnly);
|
||||
}
|
||||
|
||||
// Remotes
|
||||
bool setDefaultRemoteUrl(const QUrl& url)
|
||||
{
|
||||
return fossil().setRemoteUrl(url);
|
||||
}
|
||||
|
||||
bool getInterfaceVersion(QString &version)
|
||||
{
|
||||
return fossil().getExeVersion(version);
|
||||
}
|
||||
|
||||
private:
|
||||
static bool scanDirectory(QFileInfoList &entries, const QString& dirPath, const QString &baseDir, const QStringList& ignorePatterns, UICallback &uiCallback);
|
||||
|
||||
@@ -168,7 +319,7 @@ private:
|
||||
stringset_t pathSet;
|
||||
pathstate_map_t pathState;
|
||||
stashmap_t stashMap;
|
||||
QStringList branchList;
|
||||
QStringList branchNames;
|
||||
QStringMap tags;
|
||||
remote_map_t remotes;
|
||||
bool isIntegrated;
|
||||
|
Reference in New Issue
Block a user