diff options
| author | Artur Shepilko <artur.shepilko@nomadbyte.com> | 2017-04-20 02:21:51 -0500 |
|---|---|---|
| committer | Artur Shepilko <artur.shepilko@nomadbyte.com> | 2017-04-26 15:56:36 +0000 |
| commit | 8cc9b5c57d453ea0de7fe9838b22824c7f9eec21 (patch) | |
| tree | bfac6f0dcaf0626dae29e1c6680d6c36d7899bf8 /plugins/fossil/fossilplugin.cpp | |
| parent | ac8005190d5fa26d3488392aa560a3afd196e99c (diff) | |
* 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 <tobias.hunger@qt.io>
Diffstat (limited to 'plugins/fossil/fossilplugin.cpp')
| -rw-r--r-- | plugins/fossil/fossilplugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/fossil/fossilplugin.cpp b/plugins/fossil/fossilplugin.cpp index f8da7a8..55034fa 100644 --- a/plugins/fossil/fossilplugin.cpp +++ b/plugins/fossil/fossilplugin.cpp @@ -265,7 +265,8 @@ void FossilPlugin::annotateCurrentFile() { const VcsBase::VcsBasePluginState state = currentState(); QTC_ASSERT(state.hasFile(), return); - m_client->annotate(state.currentFileTopLevel(), state.relativeCurrentFile()); + const int lineNumber = VcsBase::VcsBaseEditor::lineNumberOfCurrentEditor(state.currentFile()); + m_client->annotate(state.currentFileTopLevel(), state.relativeCurrentFile(), QString(), lineNumber); } void FossilPlugin::diffCurrentFile() |
