Skip to content

Instantly share code, notes, and snippets.

@skwashd
Created June 18, 2015 03:17
Show Gist options
  • Save skwashd/ab8809f11d74df974978 to your computer and use it in GitHub Desktop.
Save skwashd/ab8809f11d74df974978 to your computer and use it in GitHub Desktop.
Example failing patch
From 4800290372e085a4d26bf961f19d27eb6bef9805 Mon Sep 17 00:00:00 2001
From: A User <a.user@example.com>
Date: Sun, 14 Jun 2015 22:05:23 +1000
Subject: [PATCH] Add label for 'old' entity to the diff data
---
modules/deploy_services/deploy_services.services.inc | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/deploy_services/deploy_services.services.inc b/modules/deploy_services/deploy_services.services.inc
index 467dda1..8b080dd 100644
--- a/modules/deploy_services/deploy_services.services.inc
+++ b/modules/deploy_services/deploy_services.services.inc
@@ -327,6 +327,7 @@ function deploy_services_diff_entity($type, $id, $new_revision, $old_revision =
$diff = array();
$info = array(
'label' => entity_label($type, $new_entity),
+ 'old_label' => entity_label($type, $old_entity),
'fields' => array(),
'url' => url($uri['path'], $uri['options']),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment