mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-27 12:16:21 +02:00
Code Cleanup
- Removed last traces of synch.key.
This commit is contained in:
parent
b1443e831b
commit
cd6d08f97c
5 changed files with 2 additions and 21 deletions
|
@ -77,7 +77,6 @@ Files
|
||||||
completed.data
|
completed.data
|
||||||
undo.data
|
undo.data
|
||||||
backlog.data
|
backlog.data
|
||||||
synch.key
|
|
||||||
|
|
||||||
The pending.data file aspires to contain only pending, waiting and recurring
|
The pending.data file aspires to contain only pending, waiting and recurring
|
||||||
tasks, but this is only correct after a GC, and before any tasks are modified.
|
tasks, but this is only correct after a GC, and before any tasks are modified.
|
||||||
|
@ -94,9 +93,6 @@ Files
|
||||||
been transmitted to the task server. It grows unbounded between 'synch'
|
been transmitted to the task server. It grows unbounded between 'synch'
|
||||||
commands.
|
commands.
|
||||||
|
|
||||||
The synch.key file contains a synch receipt that is used to optimize synch
|
|
||||||
operations.
|
|
||||||
|
|
||||||
|
|
||||||
Filter
|
Filter
|
||||||
A filter is simply a set of command line arguments, but is only a subset of
|
A filter is simply a set of command line arguments, but is only a subset of
|
||||||
|
|
|
@ -525,13 +525,8 @@ void Context::shadow ()
|
||||||
if (shadow_file._data == location + "/undo.data")
|
if (shadow_file._data == location + "/undo.data")
|
||||||
throw std::string (STRING_CONTEXT_SHADOW_U);
|
throw std::string (STRING_CONTEXT_SHADOW_U);
|
||||||
|
|
||||||
/*
|
|
||||||
if (shadow_file._data == location + "/backlog.data")
|
if (shadow_file._data == location + "/backlog.data")
|
||||||
throw std::string (STRING_CONTEXT_SHADOW_B);
|
throw std::string (STRING_CONTEXT_SHADOW_B);
|
||||||
*/
|
|
||||||
|
|
||||||
if (shadow_file._data == location + "/synch.key")
|
|
||||||
throw std::string (STRING_CONTEXT_SHADOW_S);
|
|
||||||
|
|
||||||
// Compose the command. Put the rc overrides up front, so that they may
|
// Compose the command. Put the rc overrides up front, so that they may
|
||||||
// be overridden by rc.shadow.command.
|
// be overridden by rc.shadow.command.
|
||||||
|
|
|
@ -189,7 +189,6 @@ void TF2::add_line (const std::string& line)
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// This is so that synch.key can just overwrite and not grow.
|
|
||||||
void TF2::clear_lines ()
|
void TF2::clear_lines ()
|
||||||
{
|
{
|
||||||
_lines.clear ();
|
_lines.clear ();
|
||||||
|
|
|
@ -63,12 +63,7 @@ int CmdStatistics::execute (std::string& output)
|
||||||
size_t dataSize = context.tdb2.pending._file.size ()
|
size_t dataSize = context.tdb2.pending._file.size ()
|
||||||
+ context.tdb2.completed._file.size ()
|
+ context.tdb2.completed._file.size ()
|
||||||
+ context.tdb2.undo._file.size ()
|
+ context.tdb2.undo._file.size ()
|
||||||
/*
|
+ context.tdb2.backlog._file.size ();
|
||||||
// TODO Re-enable this once 2.1 has taskd support.
|
|
||||||
+ context.tdb2.backlog._file.size ()
|
|
||||||
+ context.tdb2.synch_key._file.size ()
|
|
||||||
*/
|
|
||||||
;
|
|
||||||
|
|
||||||
// Count the undo transactions.
|
// Count the undo transactions.
|
||||||
std::vector <std::string> undoTxns = context.tdb2.undo.get_lines ();
|
std::vector <std::string> undoTxns = context.tdb2.undo.get_lines ();
|
||||||
|
@ -277,10 +272,7 @@ int CmdStatistics::execute (std::string& output)
|
||||||
// sense to include this.
|
// sense to include this.
|
||||||
row = view.addRow ();
|
row = view.addRow ();
|
||||||
view.set (row, 0, STRING_CMD_STATS_LAST_SYNC);
|
view.set (row, 0, STRING_CMD_STATS_LAST_SYNC);
|
||||||
if (context.tdb2.synch_key._file.exists ())
|
view.set (row, 1, "-");
|
||||||
view.set (row, 1, Date (context.tdb2.synch_key._file.mtime ()).toISO ());
|
|
||||||
else
|
|
||||||
view.set (row, 1, "-");
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// If an alternating row color is specified, notify the table.
|
// If an alternating row color is specified, notify the table.
|
||||||
|
|
|
@ -543,7 +543,6 @@
|
||||||
#define STRING_CONTEXT_SHADOW_C "Configuration variable 'shadow.file' is set to " "overwrite your completed tasks. Please change it."
|
#define STRING_CONTEXT_SHADOW_C "Configuration variable 'shadow.file' is set to " "overwrite your completed tasks. Please change it."
|
||||||
#define STRING_CONTEXT_SHADOW_U "Configuration variable 'shadow.file' is set to " "overwrite your undo log. Please change it."
|
#define STRING_CONTEXT_SHADOW_U "Configuration variable 'shadow.file' is set to " "overwrite your undo log. Please change it."
|
||||||
#define STRING_CONTEXT_SHADOW_B "Configuration variable 'shadow.file' is set to " "overwrite your backlog file. Please change it."
|
#define STRING_CONTEXT_SHADOW_B "Configuration variable 'shadow.file' is set to " "overwrite your backlog file. Please change it."
|
||||||
#define STRING_CONTEXT_SHADOW_S "Configuration variable 'shadow.file' is set to " "overwrite your synch.key file. Please change it."
|
|
||||||
#define STRING_CONTEXT_SHADOW_UPDATE "[Shadow file '{1}' updated.]"
|
#define STRING_CONTEXT_SHADOW_UPDATE "[Shadow file '{1}' updated.]"
|
||||||
|
|
||||||
// Date
|
// Date
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue