Mercurial: Show current branch in project tree and window title

Task-number: QTCREATORBUG-11388

Change-Id: I55c966b5026e435d0fa4d24607b7b4a3c6d9e3dc
Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2014-02-17 22:45:54 +02:00
committed by Tobias Hunger
parent dca2051210
commit 0cdb20ec37
2 changed files with 6 additions and 0 deletions

View File

@@ -136,6 +136,11 @@ bool MercurialControl::vcsAnnotate(const QString &file, int line)
return true; return true;
} }
QString MercurialControl::vcsTopic(const QString &directory)
{
return mercurialClient->branchQuerySync(directory);
}
bool MercurialControl::sccManaged(const QString &filename) bool MercurialControl::sccManaged(const QString &filename)
{ {
const QFileInfo fi(filename); const QFileInfo fi(filename);

View File

@@ -65,6 +65,7 @@ public:
QString vcsGetRepositoryURL(const QString &directory); QString vcsGetRepositoryURL(const QString &directory);
bool sccManaged(const QString &filename); bool sccManaged(const QString &filename);
bool vcsAnnotate(const QString &file, int line); bool vcsAnnotate(const QString &file, int line);
QString vcsTopic(const QString &directory);
public slots: public slots:
// To be connected to the HgTask's success signal to emit the repository/ // To be connected to the HgTask's success signal to emit the repository/