Patchwork D7041: phabricator: add the DiffChangeType and DiffFileType constants

login
register
mail settings
Submitter phabricator
Date Oct. 12, 2019, 1:56 a.m.
Message ID <ef50938ae1483733005c39d41f55a0d7@localhost.localdomain>
Download mbox | patch
Permalink /patch/42242/
State Not Applicable
Headers show

Comments

phabricator - Oct. 12, 2019, 1:56 a.m.
Closed by commit rHGa66e2844b0c6: phabricator: add the DiffChangeType and DiffFileType constants (authored by Kwan).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7041?vs=17072&id=17089

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7041/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7041

AFFECTED FILES
  hgext/phabricator.py

CHANGE DETAILS




To: Kwan, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -448,6 +448,23 @@ 
     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()