diff options
author | Eike Ziller <[email protected]> | 2024-11-29 10:21:20 +0100 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2024-12-10 10:03:24 +0000 |
commit | 2a990b84fafa0e3bd6bf15d37108d4777996cfee (patch) | |
tree | 17c11b7e938bd8b1e74f0481175add65a9317d35 /src/plugins/mercurial | |
parent | 65a3e484a905bf3fbac86784dd20ec421fbb401d (diff) |
VCS: Detect VCS directories even for disabled VCS plugins
Most of the version control support plugins detect that a directory/file
is under version control by looking for certain files in the directory
structure. This search doesn't really need anything specific from the
plugin, except for a list of file names.
Allow version control plugins to specify the list of files to look for in
their plugin meta data as "VcsDetectionFiles". When it is checked if a
directory is under version control, and none is found from the enabled
plugins, use the meta data to find out if any installed but disabled
plugin feels responsible for that directory.
Show a notification if a plugin is found that handles such a detected
version control system, with the option to enable the plugin and restart
QtC if necessary.
Since this adds discoverability of the version control support even when
plugins are disabled, disable the VCS plugins that can use this
mechanism (except for Git).
Change-Id: Ib507572c0065dd889a2f9b780c794f9cd985e265
Reviewed-by: Orgad Shaneh <[email protected]>
Reviewed-by: Marcus Tillmanns <[email protected]>
Diffstat (limited to 'src/plugins/mercurial')
-rw-r--r-- | src/plugins/mercurial/Mercurial.json.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/mercurial/Mercurial.json.in b/src/plugins/mercurial/Mercurial.json.in index d8125d77ba2..835005771ca 100644 --- a/src/plugins/mercurial/Mercurial.json.in +++ b/src/plugins/mercurial/Mercurial.json.in @@ -4,6 +4,7 @@ "Name" : "Mercurial", "Version" : "${IDE_VERSION}", "CompatVersion" : "${IDE_VERSION_COMPAT}", + "DisabledByDefault" : true, "VendorId" : "brianmcgillion", "Vendor" : "Brian McGillion", "Copyright" : "(C) 2016 Brian McGillion, ${IDE_COPYRIGHT}", @@ -23,5 +24,8 @@ ], "Url" : "https://www.qt.io", "DocumentationUrl" : "https://doc.qt.io/qtcreator/creator-vcs-mercurial.html", + "VcsDetectionFiles" : [ + ".hg/requires" + ], ${IDE_PLUGIN_DEPENDENCIES} } |