Added few new functions to IVersionControl, VCSManager and GeneratedFile to support the funcationality needed by the trac plugin.

All the version control plugins updated to have implementations according to the interface changes.

Merge-request: 2178
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>

Merge-request: 2178
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Tuomas Puranen
2010-09-29 12:16:35 +02:00
committed by Tobias Hunger
parent 32fff3f6cd
commit 65e95c3aba
21 changed files with 328 additions and 3 deletions

View File

@@ -87,6 +87,10 @@ bool GitVersionControl::supportsOperation(Operation operation) const
case AnnotateOperation:
rc = true;
break;
case CheckoutOperation:
case GetRepositoryRootOperation:
rc = true;
break;
}
return rc;
}
@@ -121,6 +125,17 @@ bool GitVersionControl::vcsCreateRepository(const QString &directory)
{
return gitClient()->synchronousInit(directory);
}
bool GitVersionControl::vcsCheckout(const QString &directory,const QByteArray &url)
{
return gitClient()->cloneRepository(directory,url);
}
QString GitVersionControl::vcsGetRepositoryURL(const QString &directory)
{
return gitClient()->vcsGetRepositoryURL(directory);
}
/* Snapshots are implement using stashes, relying on stash messages for
* naming as the actual stash names (stash{n}) are rotated as one adds stashes.
* Note that the snapshot interface does not care whether we have an unmodified