forked from qt-creator/qt-creator
Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0,
this applies only to a hypothetical newer version of GPL, that doesn't
exist yet. If such a version emerges, we can still decide to relicense...
While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only
Change was done by running
find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \;
Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
45 lines
1.8 KiB
C++
45 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 BazaarSettings;
|
|
|
|
class BazaarClient : public VcsBase::VcsBaseClient
|
|
{
|
|
public:
|
|
explicit BazaarClient(BazaarSettings *settings);
|
|
|
|
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 QString &source, const QString &id,
|
|
const QStringList &extraOptions = {}) override;
|
|
|
|
Utils::Id vcsEditorKind(VcsCommandTag cmd) const override;
|
|
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;
|
|
|
|
private:
|
|
friend class CloneWizard;
|
|
};
|
|
|
|
} // Bazaar::Internal
|