Commit f20dd4f9 authored by Nikita Baryshnikov's avatar Nikita Baryshnikov Committed by Orgad Shaneh

Mercurial: fix typo

Changed constant name from MECURIALREPO to MERCURIALREPO.

Change-Id: If37a0e9a6034fe31d8bc15e760b6e2541fbeb8ce
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 61552f87
...@@ -34,7 +34,7 @@ namespace Mercurial { ...@@ -34,7 +34,7 @@ namespace Mercurial {
namespace Constants { namespace Constants {
enum { debug = 0 }; enum { debug = 0 };
const char MECURIALREPO[] = ".hg"; const char MERCURIALREPO[] = ".hg";
const char MERCURIALDEFAULT[] = "hg"; const char MERCURIALDEFAULT[] = "hg";
// Changeset identifiers // Changeset identifiers
......
...@@ -324,7 +324,7 @@ void MercurialClient::view(const QString &source, const QString &id, ...@@ -324,7 +324,7 @@ void MercurialClient::view(const QString &source, const QString &id,
QString MercurialClient::findTopLevelForFile(const QFileInfo &file) const QString MercurialClient::findTopLevelForFile(const QFileInfo &file) const
{ {
const QString repositoryCheckFile = QLatin1String(Constants::MECURIALREPO) + QLatin1String("/requires"); const QString repositoryCheckFile = QLatin1String(Constants::MERCURIALREPO) + QLatin1String("/requires");
return file.isDir() ? return file.isDir() ?
VcsBase::VcsBasePlugin::findRepositoryForDirectory(file.absoluteFilePath(), repositoryCheckFile) : VcsBase::VcsBasePlugin::findRepositoryForDirectory(file.absoluteFilePath(), repositoryCheckFile) :
VcsBase::VcsBasePlugin::findRepositoryForDirectory(file.absolutePath(), repositoryCheckFile); VcsBase::VcsBasePlugin::findRepositoryForDirectory(file.absolutePath(), repositoryCheckFile);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment