Wrapped "push" and "pull"
FossilOrigin-Name: ab5fd401a09cc503168a86761b95c28e52d2875a
This commit is contained in:
@ -109,6 +109,18 @@ bool Bridge::listFiles(QStringList &files)
|
||||
return runFossil(QStringList() << "ls" << "-l", &files, RUNFLAGS_SILENT_ALL);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
bool Bridge::pushRepository()
|
||||
{
|
||||
return runFossil(QStringList() << "push");
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
bool Bridge::pullRepository()
|
||||
{
|
||||
return runFossil(QStringList() << "pull");
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
bool Bridge::stashList(stashmap_t& stashes)
|
||||
{
|
||||
|
@ -86,6 +86,8 @@ public:
|
||||
bool openRepository(const QString &repositoryPath, const QString& workspacePath);
|
||||
bool newRepository(const QString &repositoryPath);
|
||||
bool closeRepository();
|
||||
bool pushRepository();
|
||||
bool pullRepository();
|
||||
|
||||
bool uiRunning() const;
|
||||
bool startUI(const QString &httpPort);
|
||||
|
@ -1901,7 +1901,11 @@ void MainWindow::on_actionPush_triggered()
|
||||
return;
|
||||
}
|
||||
|
||||
#ifndef BRIDGE_ENABLED
|
||||
runFossil(QStringList() << "push");
|
||||
#else
|
||||
bridge.pushRepository();
|
||||
#endif
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@ -1915,7 +1919,11 @@ void MainWindow::on_actionPull_triggered()
|
||||
return;
|
||||
}
|
||||
|
||||
#ifndef BRIDGE_ENABLED
|
||||
runFossil(QStringList() << "pull");
|
||||
#else
|
||||
bridge.pullRepository();
|
||||
#endif
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user