forked from qt-creator/qt-creator
Move it locally to the only one user: VcsCommand. For the future similar usages: use ProcessTask and tweak the DoneResult inside TaskDoneHandler. Change-Id: Icdffee7f1963f3ff377bfa6309e14bd1862a2c1f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
43 lines
1.8 KiB
C++
43 lines
1.8 KiB
C++
// 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;
|
|
Utils::FilePath findTopLevelForFile(const Utils::FilePath &file) const override;
|
|
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
|