mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TDB2 - id <--> uuid mapping
- Migrated TDB mapping over to TDB2 mapping, which occurs at the TF2 level. This should (soon) restore task dependencies.
This commit is contained in:
parent
30034f057b
commit
bfad448f82
3 changed files with 45 additions and 3 deletions
|
@ -59,6 +59,9 @@ public:
|
|||
void load_lines ();
|
||||
void load_contents ();
|
||||
|
||||
std::string uuid (int);
|
||||
int id (const std::string&);
|
||||
|
||||
public:
|
||||
bool _read_only;
|
||||
bool _dirty;
|
||||
|
@ -72,6 +75,10 @@ public:
|
|||
std::vector <std::string> _added_lines;
|
||||
std::string _contents;
|
||||
File _file;
|
||||
|
||||
private:
|
||||
std::map <int, std::string> _I2U; // ID -> UUID map
|
||||
std::map <std::string, int> _U2I; // UUID -> ID map
|
||||
};
|
||||
|
||||
// TDB2 Class represents all the files in the task database.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue