Wrapped "settings"
FossilOrigin-Name: 2b7585554eaec0b930d78171ee9c6855637cd7ab
This commit is contained in:
@ -303,6 +303,13 @@ bool Bridge::updateRepository(QStringList &result, bool explainOnly)
|
||||
return runFossil(params, &result);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
bool Bridge::getFossilSettings(QStringList &result)
|
||||
{
|
||||
return runFossil(QStringList() << "settings", &result, RUNFLAGS_SILENT_ALL);
|
||||
}
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
bool Bridge::stashList(stashmap_t& stashes)
|
||||
{
|
||||
|
@ -106,6 +106,7 @@ public:
|
||||
bool renameFile(const QString& beforePath, const QString& afterPath, bool renameLocal);
|
||||
bool undoRepository(QStringList& result, bool explainOnly);
|
||||
bool updateRepository(QStringList& result, bool explainOnly);
|
||||
bool getFossilSettings(QStringList& result);
|
||||
private:
|
||||
void log(const QString &text, bool isHTML=false)
|
||||
{
|
||||
|
@ -2297,8 +2297,14 @@ void MainWindow::loadFossilSettings()
|
||||
{
|
||||
// Also retrieve the fossil global settings
|
||||
QStringList out;
|
||||
|
||||
#ifndef BRIDGE_ENABLED
|
||||
if(!runFossil(QStringList() << "settings", &out, RUNFLAGS_SILENT_ALL))
|
||||
return;
|
||||
#else
|
||||
if(!bridge.getFossilSettings(out))
|
||||
return;
|
||||
#endif
|
||||
|
||||
QStringMap kv = MakeKeyValues(out);
|
||||
|
||||
|
Reference in New Issue
Block a user