The unified diff between revisions [2449c78b..] and [ebdccab0..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'database.hh'

#
#
# patch "database.hh"
#  from [ad0aa7e49ff8c91790d1134a7b91664123a58085]
#    to [4ea836110ca59b61655724a3eb2dcd1c9a5a34cb]
#
============================================================
--- database.hh	ad0aa7e49ff8c91790d1134a7b91664123a58085
+++ database.hh	4ea836110ca59b61655724a3eb2dcd1c9a5a34cb
@@ -110,6 +110,9 @@ class database
               std::string const & table);
   bool delta_exists(hexenc<id> const & ident,
                     std::string const & table);
+  bool database::delta_exists(hexenc<id> const & ident,
+                              hexenc<id> const & base,
+                              std::string const & table);

   unsigned long count(std::string const & table);
   unsigned long space_usage(std::string const & table,
@@ -244,6 +247,11 @@ public:
                         file_id const & new_id,
                         file_delta const & del);

+
+  void get_file_delta(file_id const & id,
+                      file_id const & base,
+                      file_delta & del);
+
   // get plain version if it exists, or reconstruct version
   // from deltas (if they exist).
   void get_manifest_version(manifest_id const & id,
@@ -260,6 +268,8 @@ public:
   void get_revision_manifest(revision_id const & cid,
                              manifest_id & mid);

+  void make_fwd_deltas(std::string const & data_table, std::string const & delta_table);
+
   void deltify_revision(revision_id const & rid);

   void get_revision(revision_id const & id,