// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

// **********************************************************************
// NOTE: the sections are not ordered by their logical order to avoid
// reshuffling the file each time the index order changes (i.e., often).
// Run the fixnavi.pl script to adjust the links to the index order.
// **********************************************************************

/*!
    \page creator-vcs-bazaar.html
    \previouspage creator-reference.html

    \ingroup creator-reference-vcs

    \title Bazaar and Breezy

    \brief Additional Bazaar and Breezy functions.

    Bazaar is a free version control system sponsored by Canonical. Breezy is a
    fork of Bazaar that is backwards compatible with Bazaar's disk format and
    protocols. However, Breezy runs on Python 3, rather than on Python 2.

    \note Enable the Bazaar plugin to use Bazaar or Breezy.

    \section1 Additional Bazaar and Breezy functions

    In addition to the standard version control system functions described in
    \l {Use common version control functions}, you can select the following functions in
    the \uicontrol Tools > \uicontrol Bazaar submenu.

    \table
    \header
        \li Menu Item
        \li Description
    \row
        \li \uicontrol {Pull}
        \li Turn a branch into a mirror of another branch.
    \row
        \li \uicontrol {Push}
        \li Update the mirror of a branch.
    \row
        \li \uicontrol {Uncommit}
        \li Remove the last committed revision.
    \endtable

    \section2 Uncommitting revisions

    In Bazaar and Breezy, committing changes to a branch creates a new revision that holds
    a snapshot of the state of the working tree. To remove the last committed
    revision, select \uicontrol Tools > \uicontrol Bazaar > \uicontrol Uncommit
    and select the options you want in the \uicontrol Uncommit dialog.

    \table
    \header
        \li Option
        \li Description
    \row
        \li \uicontrol {Keep tags that point to removed revisions}
        \li Keeps the tags that point to the removed revisions.
    \row
        \li \uicontrol {Only remove the commits from the local branch when in a checkout}
        \li Removes the commits only from the local branch.
    \row
        \li \uicontrol {Revision}
        \li Removes all commits up to the specified entry in the revision log.
    \endtable

    To test the outcome of the \uicontrol Uncommit command without actually
    removing anything, select \uicontrol {Dry Run}.

    \uicontrol Uncommit leaves the working tree ready for a new commit. The only
    change it might make is restoring pending merges that were present before
    the commit.

    \section1 Bazaar and Breezy preferences

    To set Bazaar or Breezy preferences, select \preferences >
    \uicontrol {Version Control} > \uicontrol Bazaar.

    \image {qtcreator-preferences-vcs-bazaar.webp} {Bazaar tab in Version Control preferences}

    \table
    \header
        \li Preference
        \li Description
    \row
        \li \uicontrol {Command}
        \li The path to the command-line client executable.
    \row
        \li \uicontrol {Default username}
        \li The username to use by default when committing changes.
    \row
        \li \uicontrol {Default email}
        \li The email address to use by default when committing changes.
    \row
        \li \uicontrol {Log count}
        \li The maximum number of lines the log can have.
    \row
        \li \uicontrol {Timeout}
        \li A timeout for version control operations.
    \endtable

    \sa {Enable and disable plugins}, {Set up version control systems},
    {Use common version control functions}, {Version control systems}
*/
