2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 Hugues Delorme
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only 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
|
|
|
|
|
|
|
|
#include "branchinfo.h"
|
2022-09-23 14:25:49 +02:00
|
|
|
|
2011-02-28 13:40:06 +01:00
|
|
|
#include <vcsbase/vcsbaseclient.h>
|
|
|
|
|
|
2022-09-23 14:25:49 +02:00
|
|
|
namespace Bazaar::Internal {
|
2011-02-28 13:40:06 +01:00
|
|
|
|
2012-01-07 12:31:48 +01:00
|
|
|
class BazaarClient : public VcsBase::VcsBaseClient
|
2011-02-28 13:40:06 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2023-05-15 14:02:10 +02:00
|
|
|
BazaarClient();
|
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;
|
2022-12-11 11:49:17 +01:00
|
|
|
void annotate(const Utils::FilePath &workingDir, const QString &file,
|
|
|
|
|
int lineNumber = -1, const QString &revision = {},
|
|
|
|
|
const QStringList &extraOptions = {}, int firstLine = -1) override;
|
2021-07-30 16:46:27 +02:00
|
|
|
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;
|
2023-01-20 10:35:45 +01:00
|
|
|
void view(const Utils::FilePath &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
|
|
|
};
|
|
|
|
|
|
2022-09-23 14:25:49 +02:00
|
|
|
} // Bazaar::Internal
|