summaryrefslogtreecommitdiffstats
path: root/plugins/fossil/fossilclient.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update to upstream FilePath changesHEADtemp/fossilmasterhjk2023-01-201-6/+5
| | | | | Change-Id: I151fc9cb369bafd943dbfcfa17a301e09cd897df Reviewed-by: Orgad Shaneh <[email protected]>
* Adapt to upstream changeChristian Stenger2023-01-191-6/+8
| | | | | Change-Id: I0f0de2823eb338cbd327846347f3b3c8e2b61c89 Reviewed-by: Orgad Shaneh <[email protected]>
* Fossil: Adapt to upstream changesJarek Kobus2022-12-111-9/+8
| | | | | | | Follow up 32e824c76257c21ee4a5d036ecb7bfcbf6664448 Change-Id: I2d8c9f1b9424bfc2db2abbc25ed272c093a6ed63 Reviewed-by: Orgad Shaneh <[email protected]>
* Do some cleanupJarek Kobus2022-10-071-39/+22
| | | | | Change-Id: Ia63ed85397a4a86f8037797aa899253e9bcf3913 Reviewed-by: Orgad Shaneh <[email protected]>
* Replace foreach with ranged for loopJarek Kobus2022-10-061-1/+2
| | | | | Change-Id: I6238651d0b6ea8b932195711d3da7442158d2456 Reviewed-by: Orgad Shaneh <[email protected]>
* Simplify data structuresJarek Kobus2022-10-061-27/+17
| | | | | | | Do some cleanup. Change-Id: If40fefbdb646f0eb434539f8306421a40e47a3ee Reviewed-by: Orgad Shaneh <[email protected]>
* Adapt to upstream changesJarek Kobus2022-10-061-82/+46
| | | | | | | Do some cleanup. Change-Id: Ibbd9406d202bd6fa0eaf47ecd81f656578407634 Reviewed-by: Orgad Shaneh <[email protected]>
* Adapt to upstream changesJarek Kobus2022-09-201-4/+4
| | | | | Change-Id: I508d2944eb16c9f72980a55989f57ce71474c0b0 Reviewed-by: Orgad Shaneh <[email protected]>
* Adapt to upstream changesJarek Kobus2022-09-021-17/+17
| | | | | Change-Id: I521016449a1e779647a25b3e6a1d98f7990f6a10 Reviewed-by: Orgad Shaneh <[email protected]>
* Adapt to upstream changeChristian Stenger2022-08-301-4/+1
| | | | | Change-Id: Ieb95b24500c868bf4e5786ac17bcc005463d3ae2 Reviewed-by: Orgad Shaneh <[email protected]>
* Adapt to upstream changesJarek Kobus2022-08-021-7/+7
| | | | | Change-Id: I67b2d68747787574f72b395f7e5b0151b988fdff Reviewed-by: Orgad Shaneh <[email protected]>
* Adapt to upstream changesChristian Stenger2022-08-021-51/+52
| | | | | Change-Id: Iae091f1dedb3ea944c4e65ad6a2d67c2f327a939 Reviewed-by: Jarek Kobus <[email protected]>
* Adapt to upstream changeChristian Stenger2022-08-011-72/+60
| | | | | Change-Id: I013c61805eeed05937fa46eb6e6e330d4b99ebb1 Reviewed-by: Jarek Kobus <[email protected]>
* Adapt to upstream changesJarek Kobus2022-07-141-18/+14
| | | | | Change-Id: I0ec67b57432ac03b3cf3f93802686effdfce78c7 Reviewed-by: Orgad Shaneh <[email protected]>
* Adapt to upstream changeChristian Stenger2022-05-231-19/+19
| | | | | Change-Id: Ic977a404aee47bb71a927bdd77fd4f06d98e1e95 Reviewed-by: Jarek Kobus <[email protected]>
* Adapt to upstream changesChristian Stenger2022-03-091-19/+21
| | | | | Change-Id: Iaa94ecf5614aa1fa86f288b7db9141efbb06318d Reviewed-by: Jarek Kobus <[email protected]>
* Adapt to upstream changesChristian Stenger2021-08-061-46/+46
| | | | | | | | * FilePathification * SynchronousProcess -> QtcProcess Change-Id: I973ff68585788c8742652f69a7c057e28aafbaf4 Reviewed-by: Orgad Shaneh <[email protected]>
* Adapt to upstream findTopLevelForFile changehjk2021-07-301-5/+2
| | | | | Change-Id: I699d524c7b9317ac74f3f2ca3027271923ab982b Reviewed-by: Orgad Shaneh <[email protected]>
* Fossil: Adapt to Make SynchronousProcess results more directly accessiblehjk2021-05-171-55/+68
| | | | | Change-Id: Ifd5f79ba50e38fdec9e3f5c412210a95d53e8a96 Reviewed-by: Christian Stenger <[email protected]>
* Fossil: Revert some unintentional hunkhjk2021-03-291-1/+1
| | | | | | | Amends 36f3cf69. Change-Id: I4a8ea5f2353fb2feb88087af86fec6d0f7919974 Reviewed-by: Orgad Shaneh <[email protected]>
* Fossil: Aspectify settingshjk2021-03-241-27/+30
| | | | | Change-Id: I090cf3c63cd705220abb09e5d58eef89e9b55147 Reviewed-by: Orgad Shaneh <[email protected]>
* Do not include Core::IdEike Ziller2020-09-221-2/+1
| | | | | | | It moved to Utils. Change-Id: I8bfbda0857e79577d02d4a9bad518f46769a8c07 Reviewed-by: hjk <[email protected]>
* Use Utils::SkipEmptyParts instead of the deprecated one in QStringArtur Shepilko2020-07-191-5/+6
| | | | | | | | | | | | - Qt 5.14 introduced Qt::Keep/SkipEmptyParts and deprecated these in QString namespace. - Qt Creator defined Utils::SkipEmptyParts conditional on the Qt version, so we use that for flexibility. - Remove any explicit references to QString::KeepEmptyParts, as it's a default value. Change-Id: I72c65e4901ebc4c5422d4835e63fe23fb6ef28ff Reviewed-by: Orgad Shaneh <[email protected]>
* Merge remote-tracking branch 'origin/4.13'Orgad Shaneh2020-07-171-6/+6
|\ | | | | | | Change-Id: I87977120608b94bd2576b2217337c02fe34e4ceb
| * Fix build after upstream changeEike Ziller2020-07-071-6/+6
| | | | | | | | | | | | | | | | Use Utils::Id. The upstream files no longer automatically include the Core::Id wrapper. Change-Id: I7b4d6ef865df44b47e07248bb653a913ba68c494 Reviewed-by: hjk <[email protected]>
* | Work around MSVC error initializing QString from const char *Artur Shepilko2020-07-161-1/+1
|/ | | | | | | | | | | | This deals with the error while compiling with MSVC 2017: fossilclient.cpp(398): error C2440: 'initializing': cannot convert from 'const char *' to 'QString' fossilclient.cpp(398): note: No constructor could take the source type, or constructor overload resolution was ambiguous No problem building that with gcc. Change-Id: Iddb9754cd5010505b182ca9b81e390a7c3b8fdda Reviewed-by: Orgad Shaneh <[email protected]>
* Adapt to Fossil client version 2.12Artur Shepilko2020-06-171-5/+9
| | | | | | | | | | Fossil 2.12 changes the output of 'info' command replacing the label that attributes the check-out's hash-id from 'uuid' to 'hash' [1]. [1]: https://fossil-scm.org/fossil/info/8ad5e4690854a81 "src/info.c" Change-Id: I1277d784c377ee37434abc017db748d16353b31e Reviewed-by: Orgad Shaneh <[email protected]>
* Push/pull: Fix the handling of the Default URLArtur Shepilko2020-06-161-8/+16
| | | | | | | | | | | | | | | | | On a successful push/pull operation, Fossil allows user to save the used remote URL, such that the next time it would be used by default. With Fossil plugin, the user is allowed to choose the saved Default location, also it's pre-filled in Remote URL field. A choice is offered to save the newly entered Remote URL, otherwise the entered URL is used only once without saving. To use the Default URL, Fossil push/pull command should be called without specifying any URL explicitly. Otherwise, Fossil client displays a prompt asking whether to save it, even when it matches the currently stored one. Change-Id: I3f517be4b60bef5bf1f5bca19345078ef6d6dda2 Reviewed-by: Orgad Shaneh <[email protected]>
* Adapt to 4.12Orgad Shaneh2020-02-141-13/+14
| | | | | Change-Id: Ie49d91582dac4b130c8fcd7db2ce19249ed3f057 Reviewed-by: hjk <[email protected]>
* Adapt to upstream changesOrgad Shaneh2020-01-311-5/+3
| | | | | Change-Id: Ibdbd3abcfd65b091744451830625e2135c6573d9 Reviewed-by: hjk <[email protected]>
* Adapt to upstream changesEike Ziller2019-12-191-4/+3
| | | | | Change-Id: I105277aba8e7d897ed65f8bba4cd803091046212 Reviewed-by: Orgad Shaneh <[email protected]>
* Adapt to upstream FileName changesEike Ziller2019-05-291-6/+6
| | | | | | Change-Id: I5b2a3ec17024fdc569df0c65f8d48564d5a3afea Reviewed-by: hjk <[email protected]> Reviewed-by: Orgad Shaneh <[email protected]>
* FossilClient: De-noiseOrgad Shaneh2019-05-151-43/+45
| | | | | Change-Id: I9129d1e542073c2454ed1758af1b8dfc06ba0e1a Reviewed-by: Eike Ziller <[email protected]>
* Adapt to masterOrgad Shaneh2019-05-141-1/+2
| | | | | Change-Id: Ie1b9f937fe2daaaa2a181d28aec8ba065aff9e3f Reviewed-by: Eike Ziller <[email protected]>
* Create a correct editor for 'Log Current File'Artur Shepilko2018-09-061-1/+1
| | | | | | | - affects legacy versions of the fossil client Change-Id: I72a7eca4199fe3867fb82ff872d2bedecfd85ff3 Reviewed-by: Orgad Shaneh <[email protected]>
* Add Reload button to Log and Diff editorsArtur Shepilko2018-09-021-0/+5
| | | | | Change-Id: I524f114c2642a793a06c03e18c1eeab019209fd7 Reviewed-by: Orgad Shaneh <[email protected]>
* Suppress command output on revision queryOrgad Shaneh2018-08-281-1/+2
| | | | | | | | This is an internal operation, no need to log it. Change-Id: Ic031454904437fd648579b1d0922d73ce2259f64 Reviewed-by: Artur Shepilko <[email protected]> Reviewed-by: Orgad Shaneh <[email protected]>
* Add support for annotation of any given revision4.7Artur Shepilko2018-08-081-17/+45
| | | | | | | | | - Parent commits are also accessible from Annotate context menu - The client functionality was added in `fossil v2.4` Change-Id: Ia6096432cb1151388b5aebca30a6d25c1c6079f4 Reviewed-by: Eike Ziller <[email protected]> Reviewed-by: Orgad Shaneh <[email protected]>
* Update copyright yearArtur Shepilko2018-07-161-1/+1
| | | | | Change-Id: I2b1db2013cad9d25d2a54439866aae63a62623f0 Reviewed-by: Orgad Shaneh <[email protected]>
* Fix isVcsFileOrDirectory4.5Eike Ziller2017-10-171-3/+4
| | | | | | | | | | The method should return if the given path is a file or directory that contains the version control system specific data (like .git, .svn), so it only should return true for the fossil db file. Change-Id: I0211b117f43fbeda2c44e782927dbed6b5a19a21 Reviewed-by: Orgad Shaneh <[email protected]> Reviewed-by: Tobias Hunger <[email protected]>
* Adapt to changes in VcsBase4.4Eike Ziller2017-10-061-9/+9
| | | | | | | | | The VCS editors now directly keep a pointer to their editor config. Changed in qt-creator/a36536813f9aa00944fd8fcab2e2689a385d5387 Change-Id: Icd1c8b0628677b3b6da305ca294b2d67810c7992 Reviewed-by: Tobias Hunger <[email protected]> Reviewed-by: Orgad Shaneh <[email protected]>
* Vcs: Jump to the current source line in Fossil Annotate editorv4.3.04.3Artur Shepilko2017-04-261-28/+68
| | | | | | | | | | | | | | | | * Keep track of the current source line number and pass it to Annotate action. * Add a 'List Versions' toggle in Annotate editor to prepend a list of commits that make up the annotated source. * By default do not show the version list so that annotated line number could be matched to the source line. NOTE: VcsBaseEditorWidget::configurationWidget() query is no longer available, yet Fossil client needs it in order to process the effective arguments. So we re-implement it in FossilEditorWidget sub-class. Change-Id: Idc4c21d074ccf4e1c6d041cce2abceb78665c8f2 Reviewed-by: Tobias Hunger <[email protected]>
* Vcs: Re-implement Fossil's topic indicator using a TopicCache sub-classArtur Shepilko2017-04-211-20/+1
| | | | | | | | | The functionality for tracking project's current topic/branch has long been folded into a base class Core::IVersionControl::TopicCache. Fossil plugin should just sub-class it and pass the instance to the base. Change-Id: I1b6c1631f5fc10987d8a608d573defeecbc31b37 Reviewed-by: Tobias Hunger <[email protected]>
* Vcs: Add Fossil SCM integration pluginArtur Shepilko2017-02-091-0/+1201
* Qt Creator base-commit: f77af5e3362cc6c4360ea1d197fb834cd5b072fa * Stand-alone plugin source tree for integration into qtc super-project * Original release: https://github.com/nomadbyte/qtcreator-plugin-fossil * Adapted from Bazaar plugin implementation Configuring Fossil ------------------ 1. Download the [Fossil SCM client](http://fossil-scm.org) and install `fossil` executable file in your `PATH`. 2. Create or designate a directory to store local Fossil repositories and remote clones. For example: `~/fossils/qt`. 3. Configure Version Control Options for the Fossil plugin to use the designated directory as `Local Repositories Default path`. Now Fossil should become available as a VCS choice to create new local repositories, as well as a choice in `New File or Project` to clone a remote Fossil repository. Change-Id: I630184c1b344184d9e08ae2fc24a5e4766f834b9 Reviewed-by: Eike Ziller <[email protected]>