Subversion: Adapt to new VCSBasePlugin.

Remove logic handling several repositories.
This commit is contained in:
Friedemann Kleint
2009-12-08 16:50:27 +01:00
parent 168813e9b1
commit ff1054fc8d
9 changed files with 195 additions and 204 deletions

View File

@@ -42,6 +42,10 @@ class QTextCodec;
class QTextCursor;
QT_END_NAMESPACE
namespace Core {
class IVersionControl;
}
namespace VCSBase {
struct VCSBaseEditorPrivate;
@@ -114,6 +118,7 @@ public:
// The codec should be set on editors displaying diff or annotation
// output.
static QTextCodec *getCodec(const QString &source);
static QTextCodec *getCodec(const QString &workingDirectory, const QStringList &files);
// Utility to return the editor from the IEditor returned by the editor
// manager which is a BaseTextEditable.
@@ -164,6 +169,12 @@ private slots:
void slotDiffBrowse(int);
void slotDiffCursorPositionChanged();
protected:
/* A helper that can be used to locate a file in a diff in case it
* is relative. Tries to derive the directory from source and
* version control. */
QString findDiffFile(const QString &f, Core::IVersionControl *control = 0) const;
private:
// Implement to return a set of change identifiers in
// annotation mode