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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <vcsbase/vcsbaseclient.h>
#include <utils/fileutils.h>
namespace Subversion {
namespace Internal {
class SubversionDiffEditorController;
class SubversionSettings;
class SubversionClient : public VcsBase::VcsBaseClient
{
Q_OBJECT
public:
SubversionClient();
bool doCommit(const Utils::FilePath &repositoryRoot,
const QStringList &files,
const QString &commitMessageFile,
const QStringList &extraOptions = {}) const;
void commit(const Utils::FilePath &repositoryRoot,
const QStringList &files,
const QString &commitMessageFile,
const QStringList &extraOptions = {}) override;
void diff(const Utils::FilePath &workingDirectory,
const QStringList &files,
const QStringList &extraOptions) override;
void log(const Utils::FilePath &workingDir,
const QStringList &files = {},
const QStringList &extraOptions = {},
bool enableAnnotationContextMenu = false,
const std::function<void(Utils::CommandLine &)> &addAuthOptions = {}) override;
void describe(const Utils::FilePath &workingDirectory, int changeNumber, const QString &title);
// Add authentication options to the command line arguments.
struct AddAuthOptions {};
QString synchronousTopic(const Utils::FilePath &repository) const;
static QString escapeFile(const QString &file);
static QStringList escapeFiles(const QStringList &files);
protected:
Utils::Id vcsEditorKind(VcsCommandTag cmd) const override;
private:
SubversionDiffEditorController *findOrCreateDiffEditor(const QString &documentId,
const Utils::FilePath &source, const QString &title,
const Utils::FilePath &workingDirectory);
mutable Utils::FilePath m_svnVersionBinary;
mutable QString m_svnVersion;
};
Utils::CommandLine &operator<<(Utils::CommandLine &command, SubversionClient::AddAuthOptions);
} // namespace Internal
} // namespace Subversion
|