# HG changeset patch
# User Ian Moody <moz-ian@perix.co.uk>
# Date 2019-10-06 12:50:32
# Node ID a66e2844b0c6facd16ff3f84bba4f74f1521b09c
# Parent  5ff32fdf0b0b56906067197a356e10bb5175755a

phabricator: add the DiffChangeType and DiffFileType constants

These are used in Phabricator change objects.
There are more values but so far as I can tell we don't need them.

Differential Revision: https://phab.mercurial-scm.org/D7041

diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -448,6 +448,23 @@ def getdiff(ctx, diffopts):
     return output.getvalue()
 
 
+class DiffChangeType(object):
+    ADD = 1
+    CHANGE = 2
+    DELETE = 3
+    MOVE_AWAY = 4
+    COPY_AWAY = 5
+    MOVE_HERE = 6
+    COPY_HERE = 7
+    MULTICOPY = 8
+
+
+class DiffFileType(object):
+    TEXT = 1
+    IMAGE = 2
+    BINARY = 3
+
+
 def creatediff(ctx):
     """create a Differential Diff"""
     repo = ctx.repo()