2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 Hugues Delorme
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2016-01-15 14:57:40 +01:00
|
|
|
|
2016-02-03 17:35:54 +01:00
|
|
|
#pragma once
|
2011-02-28 13:40:06 +01:00
|
|
|
|
2011-06-10 14:02:46 +00:00
|
|
|
#include "bazaarsettings.h"
|
2011-02-28 13:40:06 +01:00
|
|
|
#include "branchinfo.h"
|
|
|
|
|
#include <vcsbase/vcsbaseclient.h>
|
|
|
|
|
|
|
|
|
|
namespace Bazaar {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2011-06-10 14:02:46 +00:00
|
|
|
class BazaarSettings;
|
|
|
|
|
|
2012-01-07 12:31:48 +01:00
|
|
|
class BazaarClient : public VcsBase::VcsBaseClient
|
2011-02-28 13:40:06 +01:00
|
|
|
{
|
2011-03-28 11:59:26 +02:00
|
|
|
Q_OBJECT
|
2011-09-21 11:43:58 +02:00
|
|
|
|
2011-02-28 13:40:06 +01:00
|
|
|
public:
|
2020-01-24 10:13:02 +01:00
|
|
|
explicit BazaarClient(BazaarSettings *settings);
|
2011-02-28 13:40:06 +01:00
|
|
|
|
2021-07-30 16:46:27 +02:00
|
|
|
BranchInfo synchronousBranchQuery(const Utils::FilePath &repositoryRoot) const;
|
|
|
|
|
bool synchronousUncommit(const Utils::FilePath &workingDir,
|
|
|
|
|
const QString &revision = {},
|
|
|
|
|
const QStringList &extraOptions = {});
|
|
|
|
|
void commit(const Utils::FilePath &repositoryRoot, const QStringList &files,
|
|
|
|
|
const QString &commitMessageFile, const QStringList &extraOptions = {}) override;
|
2016-06-13 19:57:45 +03:00
|
|
|
VcsBase::VcsBaseEditorWidget *annotate(
|
2021-07-30 16:46:27 +02:00
|
|
|
const Utils::FilePath &workingDir, const QString &file, const QString &revision = {},
|
|
|
|
|
int lineNumber = -1, const QStringList &extraOptions ={}) override;
|
|
|
|
|
bool isVcsDirectory(const Utils::FilePath &filePath) const;
|
2021-07-29 17:54:14 +02:00
|
|
|
Utils::FilePath findTopLevelForFile(const Utils::FilePath &file) const override;
|
2021-07-30 16:46:27 +02:00
|
|
|
bool managesFile(const Utils::FilePath &workingDirectory, const QString &fileName) const;
|
2016-02-11 15:30:51 +02:00
|
|
|
void view(const QString &source, const QString &id,
|
2021-07-30 16:46:27 +02:00
|
|
|
const QStringList &extraOptions = {}) override;
|
2016-02-11 15:30:51 +02:00
|
|
|
|
2020-06-26 13:59:38 +02:00
|
|
|
Utils::Id vcsEditorKind(VcsCommandTag cmd) const override;
|
2018-09-20 00:25:36 +03:00
|
|
|
QString vcsCommandString(VcsCommandTag cmd) const override;
|
|
|
|
|
Utils::ExitCodeInterpreter exitCodeInterpreter(VcsCommandTag cmd) const override;
|
|
|
|
|
QStringList revisionSpec(const QString &revision) const override;
|
|
|
|
|
StatusItem parseStatusLine(const QString &line) const override;
|
2011-09-21 11:43:58 +02:00
|
|
|
|
2011-02-28 13:40:06 +01:00
|
|
|
private:
|
2014-05-05 17:56:54 +02:00
|
|
|
friend class CloneWizard;
|
2011-02-28 13:40:06 +01:00
|
|
|
};
|
|
|
|
|
|
2011-11-10 16:06:19 +01:00
|
|
|
} // namespace Internal
|
2011-02-28 13:40:06 +01:00
|
|
|
} // namespace Bazaar
|