Deprecated Features

- Marked the push/pull/merge features as deprecated.
This commit is contained in:
Paul Beckingham 2013-09-10 22:52:38 -04:00
parent bcc9eb3d7a
commit e441b8ca8e
7 changed files with 22 additions and 5 deletions

View file

@ -52,6 +52,8 @@ CmdMerge::CmdMerge ()
////////////////////////////////////////////////////////////////////////////////
int CmdMerge::execute (std::string& output)
{
context.footnote ("The 'merge' command is deprecated, and will be removed in a subsequent release.");
// invoke gc and commit before merging in order to update data files
context.tdb2.gc ();
context.tdb2.commit ();

View file

@ -50,6 +50,8 @@ CmdPull::CmdPull ()
////////////////////////////////////////////////////////////////////////////////
int CmdPull::execute (std::string& output)
{
context.footnote ("The 'pull' command is deprecated, and will be removed in a subsequent release.");
std::vector <std::string> words = context.a3.extract_words ();
std::string file;
if (words.size ())

View file

@ -52,6 +52,8 @@ CmdPush::CmdPush ()
// Because this is potentially on another machine, no checking can be performed.
int CmdPush::execute (std::string& output)
{
context.footnote ("The 'push' command is deprecated, and will be removed in a subsequent release.");
std::vector <std::string> words = context.a3.extract_words ();
std::string file;
if (words.size ())

View file

@ -169,13 +169,13 @@ int CmdShow::execute (std::string& output)
" locale"
" locking"
" merge.autopush"
" merge.default.uri"
" merge.default.uri" // Deprecated 2.3.0
" monthsperline"
" nag"
" patterns"
" print.empty.columns"
" pull.default.uri"
" push.default.uri"
" pull.default.uri" // Deprecated 2.3.0
" push.default.uri" // Deprecated 2.3.0
" recurrence.indicator"
" recurrence.limit"
" regex"
@ -297,6 +297,7 @@ int CmdShow::execute (std::string& output)
color = warning;
}
// TODO Deprecated.
std::string value = i->second;
// hide sensible information
if ( (i->first.substr (0, 5) == "push." ||