blob: ceb708e6d9139545bde307344308d86bb99a4a3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright (C) 2016 Hugues Delorme
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "branchinfo.h"
#include <vcsbase/vcsbaseclient.h>
namespace Bazaar::Internal {
class BazaarClient : public VcsBase::VcsBaseClient
{
public:
BazaarClient();
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;
void annotate(const Utils::FilePath &workingDir, const QString &file,
int lineNumber = -1, const QString &revision = {},
const QStringList &extraOptions = {}, int firstLine = -1) override;
bool isVcsDirectory(const Utils::FilePath &filePath) const;
bool managesFile(const Utils::FilePath &workingDirectory, const QString &fileName) const;
void view(const Utils::FilePath &source, const QString &id,
const QStringList &extraOptions = {}) override;
Utils::Id vcsEditorKind(VcsCommandTag cmd) const override;
QString vcsCommandString(VcsCommandTag cmd) const override;
VcsBase::ExitCodeInterpreter exitCodeInterpreter(VcsCommandTag cmd) const override;
QStringList revisionSpec(const QString &revision) const override;
StatusItem parseStatusLine(const QString &line) const override;
private:
friend class CloneWizard;
};
} // Bazaar::Internal
|