diff options
author | dt <qtc-committer@nokia.com> | 2010-05-11 14:13:38 +0200 |
---|---|---|
committer | dt <qtc-committer@nokia.com> | 2010-05-12 14:14:44 +0200 |
commit | 9bc9fe73e160f9ef87979a3cf5f1276b5f1ae0cf (patch) | |
tree | 1384611d81dcba7bfc2b25f02409322603e6931e /src/plugins/cvs/cvscontrol.cpp | |
parent | e65e011706915a90e98ee67046a150ade84757e6 (diff) | |
download | qt-creator-9bc9fe73e160f9ef87979a3cf5f1276b5f1ae0cf.tar.gz |
File renaming
Reviewed-By: con
Reviewed-By: Friedemann Kleint
We now support renaming files. The version control system tries first to
rename, if that doesn't support or can't rename the file we do a normal
rename. (Note: git, hg, perforce > 2009.02 support renaming, cvs not.
(perforce untested)). We correctly notify all editors of the renamed
file and tell the project manager to rename the file in the project.
Note: Only the qt4projectmanager knows how to rename files.
Note: renaming folders, moving files to different folders, renaming
.pro/.pri files is not supported. Those things can be later added after
this has proven to work correctly in the simple case.
Also we don't do any actions based on the renaming like renaming
classes, changing include guards or #include lines.
Diffstat (limited to 'src/plugins/cvs/cvscontrol.cpp')
-rw-r--r-- | src/plugins/cvs/cvscontrol.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/cvs/cvscontrol.cpp b/src/plugins/cvs/cvscontrol.cpp index 33e08c03a0..f920545388 100644 --- a/src/plugins/cvs/cvscontrol.cpp +++ b/src/plugins/cvs/cvscontrol.cpp @@ -54,6 +54,7 @@ bool CVSControl::supportsOperation(Operation operation) const case DeleteOperation: case AnnotateOperation: break; + case MoveOperation: case OpenOperation: case CreateRepositoryOperation: case SnapshotOperations: @@ -81,6 +82,11 @@ bool CVSControl::vcsDelete(const QString &fileName) return m_plugin->vcsDelete(fi.absolutePath(), fi.fileName()); } +bool CVSControl::vcsMove(const QString &from, const QString &to) +{ + return false; +} + bool CVSControl::vcsCreateRepository(const QString &) { return false; |