summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/command.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Vcs: Some naming re-organizationhjk2014-08-281-643/+0
| | | | | | | | | | Rename VcsCommand to VcsCommandTag, Command into VcsCommand (Too generic to not mistake for Core::Command IMNSHO), remove the now unneeded namespace qualification when not needed, adjust surrounding code. Change-Id: Iceb18a21e5e6dffa1a622241286f766985bb8d22 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
* VcsBase: Use static pattern for VcsBaseOutputWindowhjk2014-08-271-6/+4
| | | | | | | | Also rename to VcsOutputWindow. Change-Id: I79547b1154603a8c7b3604eadc5b460930c6109c Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: hjk <hjk121@nokiamail.com>
* VcsBase: Adjusting incompatible signal/slotAlessandro Portale2014-07-171-5/+5
| | | | | | | | | | | This is a fix for QObject::connect: No such slot VcsBase::VcsBaseOutputWindow::appendCommand(QString,QString,QStringList) in command.cpp:323 Change-Id: I6c68456081c323ec1d4bf67f13982c71c25ade3a Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Some QString -> FileName transformationOrgad Shaneh2014-07-161-16/+19
| | | | | Change-Id: I4a8a8f68bb1e52750380218793ec3029b488c01f Reviewed-by: Daniel Teske <daniel.teske@digia.com>
* Use double quotes instead of single quotes as per our guidelines.Christian Kandeler2014-04-221-1/+1
| | | | | Change-Id: Ib608bb49e26781aef1914085a5d801fcdcd5eb56 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Braces cleanupOrgad Shaneh2013-11-141-4/+3
| | | | | Change-Id: I8413252c90a1487d291f15d92837c30ab697b245 Reviewed-by: hjk <hjk121@nokiamail.com>
* VCS: Do less when command is aborted internallyOrgad Shaneh2013-09-301-37/+44
| | | | | | | | | | If the user cancels a command, output and error text might still be interesting. When aborting a command internally (when Creator is closed, or later when a command is re-executed for the same editor), we don't want any of those, and they have a destructive potential. Change-Id: I5e35fdf59c0fcdc0af45f13ac142da31edf18bd7 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Command: Do not emit repositoryChanged when app is closedOrgad Shaneh2013-09-271-11/+21
| | | | | | | Command is threaded, so it can be destructed after VcsManager is gone Change-Id: I9618412aec502218f3c6b656ad2145b6a0aa28b5 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* VCS: Enable canceling a commandOrgad Shaneh2013-09-261-13/+29
| | | | | Change-Id: Ifdaf901611e2b780defacb95f2b579d706e0343b Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
* Introduce ExitCodeInterpreter, useful when exit code != 0 is validjkobus2013-09-261-16/+23
| | | | | | | Task-number: QTCREATORBUG-10207 Change-Id: I3b440d40a968f09afc613b686ee50da6465ad88e Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* ProjectManager: Use Core::Id for progress typeshjk2013-09-041-1/+2
| | | | | Change-Id: I72993fda50ad70ad2d7c2f449923ac6e34b9e737 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Apply 'static' pattern to VcsManagerhjk2013-09-031-2/+2
| | | | | | | Adapt user and surrounding code. Change-Id: Id2648f82a9cbbd0ad0bfb91f6958b8cee7ea29cc Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Core: Static pattern for ProgressManager, clean up all usershjk2013-09-021-2/+1
| | | | | Change-Id: I4af8793ca69a3af9e99baeb7c31dad3864266f91 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* VCS: Replace AbstractCheckoutJob with CommandOrgad Shaneh2013-09-021-11/+35
| | | | | | | Command now provides the same functionality. Deduplicate code. Change-Id: I789f021050471281870b6ef6a81a94e66fbdf0c7 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* VCS: Enable terminating a commandOrgad Shaneh2013-09-021-1/+6
| | | | | Change-Id: I2160a22e300aca9b38e28257375c8e0be2026d12 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* VCS: Update progress bar for commands that output progressOrgad Shaneh2013-08-301-3/+73
| | | | | Change-Id: I643df94c72068259817092d7d48f71984288fdb5 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Compile fixhjk2013-08-301-0/+1
| | | | | Change-Id: I522fa14be958284fb8ed3ff4626a31b8ee575546 Reviewed-by: hjk <hjk121@nokiamail.com>
* VCS: Invert Command -> runVcs dependencyOrgad Shaneh2013-08-301-18/+250
| | | | | | | | | * Unclutter runVcs * Enable more dynamic signal/slot usage in Command Change-Id: Ie97b17078778b0c86b74d5725a78e766828ac6d8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Merge remote-tracking branch 'origin/2.8'Oswald Buddenhagen2013-08-211-8/+11
|\ | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/cpptools/cppcompletion_test.cpp src/plugins/cpptools/cpptoolsplugin.h src/plugins/projectexplorer/customtoolchain.cpp src/plugins/vcsbase/command.cpp Change-Id: Ie7b3c9e136c0748b41320227c757471259339b48
| * Git: Fix crash on quit while rebase-todo editor is openOrgad Shaneh2013-08-131-15/+18
| | | | | | | | | | Change-Id: I458cbb2168642f226583b406e34596d223c7d5ea Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* | VCS: Use runVcs for CommandOrgad Shaneh2013-08-201-60/+29
| | | | | | | | | | | | | | | | | | * Removes duplication * Supports all flags accepted by runVcs * Supports output while running Change-Id: Id067791760753184cd2516c23634564880ca5db0 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* | Introduce Utils::SynchronousProcess::normalizeNewlinesOrgad Shaneh2013-08-061-6/+5
| | | | | | | | | | | | | | | | | | | | | | Replaces \r\n? with \n. Some console applications (e.g. git-push, git-rebase) use \r alone to move the cursor to the line's beginning. This should be replaced by \n rather than just be erased. Change-Id: I8d614d2b471e59decdbfa7f173ffa7fbdb11759b Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* | VCS: Un-data functions that accept QStringOrgad Shaneh2013-07-311-1/+1
| | | | | | | | | | Change-Id: Iffa82f4ab06162ab57e77301e77fb37ed7230bd5 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* | VCS: Remove unused termination modeOrgad Shaneh2013-07-191-34/+0
| | | | | | | | | | | | | | Defaults to NoReport and nobody sets other values Change-Id: I3def23bd350fcef45df9eb8d3a0e86baac192bd9 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* | VCS: Consolidate codec handlingOrgad Shaneh2013-07-191-1/+18
| | | | | | | | | | | | Change-Id: I2c9a5031b63f0bc3e884739be680d051d7cf1ab4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* | VCS: Remove removeColorCodesOrgad Shaneh2013-07-081-26/+0
|/ | | | | | | | | status output can be uncolorized using the git config value color.status=false (works for short status since git 1.7.0) Change-Id: I0887ab9a02f4c98fe54a94a53ffcd4f91fef8699 Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Revert "DocumentManager: Support expect/unexpect directory changes"Orgad Shaneh2013-06-191-6/+0
| | | | | | | | | Doesn't work This reverts commit f6ec8c334258dd04306c20a7db6ae357fa261209. Change-Id: I84ecb956bd8ad2358228e11630e95ac03c903c21 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* VCS: Add a property to Command to indicate expected repo changesOrgad Shaneh2013-06-101-1/+24
| | | | | Change-Id: Ia6c929ae64008dcb37695a5358c44096a893e0c4 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Basic integration of diff editor inside git pluginjkobus2013-05-151-9/+3
| | | | | | Change-Id: I7675fc1d994020f94f42f6bd7b4f75aa29e6edf6 Reviewed-by: David Schulz <david.schulz@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Clean headers in vcsbase-plugin.Friedemann Kleint2013-03-261-2/+3
| | | | | Change-Id: Ibbfd5e0b07b2a06d17f4e3360511d7ad13b49f55 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* VCS: Allow unlimited timeoutOrgad Shaneh2013-03-011-1/+2
| | | | | Change-Id: I1544b6ed01e7f7d8aeaaef57c40d1f6afc83a664 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Adjust license headershjk2012-10-051-20/+19
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Removed module names from #include directives.Erik Verbruggen2012-02-151-6/+6
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Use new static ICore interface.hjk2012-01-241-1/+1
| | | | | Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* vcs: s/VCS/Vcs/hjk2012-01-091-2/+2
| | | | | | | | According to style guide. Change-Id: I05c1d4f50ddbf2876ab7e0835f4abec95fd573b2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com>
* Use internal namespace in VCSBase more consistentlyTobias Hunger2011-12-081-14/+7
| | | | | Change-Id: I61de9796aaeb9484b44029c5f1d46e69834a04c3 Reviewed-by: Hugues Delorme <delorme.hugues@fougsys.fr>
* all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* vcsbase: throw away VCSJobRunner, replaced by GitCommandcerf2011-10-051-0/+340
VCSBase::Command was created from GitCommand, it replaces VCSJobRunner. VCSBase::Command is simpler to use (in VCSBaseClient) and commands can show up in the progress manager. From now on, the git plugin can easily rely on vcsbase. Change-Id: I40593f354249cd94a4c79e90f9bf1362ff3bf5ec Merge-request: 394 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com> Reviewed-on: http://codereview.qt-project.org/6078