summaryrefslogtreecommitdiff
path: root/devel/monotone/patches/patch-dd
diff options
context:
space:
mode:
Diffstat (limited to 'devel/monotone/patches/patch-dd')
-rw-r--r--devel/monotone/patches/patch-dd70
1 files changed, 0 insertions, 70 deletions
diff --git a/devel/monotone/patches/patch-dd b/devel/monotone/patches/patch-dd
deleted file mode 100644
index 1e32068fb85..00000000000
--- a/devel/monotone/patches/patch-dd
+++ /dev/null
@@ -1,70 +0,0 @@
-$NetBSD: patch-dd,v 1.1 2007/05/28 08:13:25 dan Exp $
-#
-# old_revision [f92dd754bf5c1e6eddc9c462b8d68691cfeb7f8b]
-#
-# patch "diff_patch.cc"
-# from [5437f74550a59622f0aca36b00dd43f104b7692a]
-# to [d4826b42f48007454d5827ae45c9eb39d99dbe6a]
-#
-============================================================
---- diff_patch.cc 5437f74550a59622f0aca36b00dd43f104b7692a
-+++ diff_patch.cc d4826b42f48007454d5827ae45c9eb39d99dbe6a
-@@ -500,19 +500,26 @@ content_merge_database_adaptor::record_m
- file_id const & right_ident,
- file_id const & merged_ident,
- file_data const & left_data,
-+ file_data const & right_data,
- file_data const & merged_data)
- {
- L(FL("recording successful merge of %s <-> %s into %s")
- % left_ident % right_ident % merged_ident);
-
-- delta left_delta, right_delta;
- transaction_guard guard(app.db);
-
-- diff(left_data.inner(), merged_data.inner(), left_delta);
-- diff(left_data.inner(), merged_data.inner(), right_delta);
--
-- app.db.put_file_version(left_ident, merged_ident, file_delta(left_delta));
-- app.db.put_file_version(right_ident, merged_ident, file_delta(right_delta));
-+ if (!(left_ident == merged_ident))
-+ {
-+ delta left_delta;
-+ diff(left_data.inner(), merged_data.inner(), left_delta);
-+ app.db.put_file_version(left_ident, merged_ident, file_delta(left_delta));
-+ }
-+ if (!(right_ident == merged_ident))
-+ {
-+ delta right_delta;
-+ diff(right_data.inner(), merged_data.inner(), right_delta);
-+ app.db.put_file_version(right_ident, merged_ident, file_delta(right_delta));
-+ }
- guard.commit();
- }
-
-@@ -574,6 +581,7 @@ content_merge_workspace_adaptor::record_
- file_id const & right_id,
- file_id const & merged_id,
- file_data const & left_data,
-+ file_data const & right_data,
- file_data const & merged_data)
- {
- L(FL("temporarily recording merge of %s <-> %s into %s")
-@@ -734,7 +742,7 @@ content_merger::try_to_merge_files(file_
-
- merged_id = merged_fid;
- adaptor.record_merge(left_id, right_id, merged_fid,
-- left_data, merge_data);
-+ left_data, right_data, merge_data);
-
- return true;
- }
-@@ -764,7 +772,7 @@ content_merger::try_to_merge_files(file_
-
- merged_id = merged_fid;
- adaptor.record_merge(left_id, right_id, merged_fid,
-- left_data, merge_data);
-+ left_data, right_data, merge_data);
- return true;
- }
-