tests/phabricator/phabread-str-time.json
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 07 Aug 2019 23:46:14 +0200
changeset 42787 1ea668722c0d
parent 42617 7629eb87e7f2
permissions -rw-r--r--
revlog: assign rawtext earlier in `_revisiondata` Assigning the revision earlier make the code easier to read.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
42617
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
     1
{
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
     2
    "version": 1,
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
     3
    "interactions": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
     4
        {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
     5
            "request": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
     6
                "body": "api.token=cli-hahayouwish&ids%5B0%5D=1285",
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
     7
                "headers": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
     8
                    "content-length": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
     9
                        "58"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    10
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    11
                    "content-type": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    12
                        "application/x-www-form-urlencoded"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    13
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    14
                    "host": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    15
                        "phab.mercurial-scm.org"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    16
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    17
                    "accept": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    18
                        "application/mercurial-0.1"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    19
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    20
                    "user-agent": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    21
                        "mercurial/proto-1.0 (Mercurial 4.8.2)"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    22
                    ]
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    23
                },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    24
                "method": "POST",
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    25
                "uri": "https://phab.mercurial-scm.org//api/differential.query"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    26
            },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    27
            "response": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    28
                "status": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    29
                    "message": "OK",
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    30
                    "code": 200
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    31
                },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    32
                "headers": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    33
                    "content-length": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    34
                        "822"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    35
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    36
                    "expires": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    37
                        "Sat, 01 Jan 2000 00:00:00 GMT"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    38
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    39
                    "x-content-type-options": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    40
                        "nosniff"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    41
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    42
                    "strict-transport-security": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    43
                        "max-age=31536000; includeSubdomains; preload"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    44
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    45
                    "vary": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    46
                        "Accept-Encoding"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    47
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    48
                    "connection": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    49
                        "keep-alive"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    50
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    51
                    "x-xss-protection": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    52
                        "1; mode=block"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    53
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    54
                    "cache-control": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    55
                        "no-store"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    56
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    57
                    "date": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    58
                        "Mon, 01 Jul 2019 22:36:40 GMT"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    59
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    60
                    "x-frame-options": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    61
                        "Deny"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    62
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    63
                    "referrer-policy": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    64
                        "no-referrer",
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    65
                        "strict-origin-when-cross-origin"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    66
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    67
                    "content-type": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    68
                        "application/json"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    69
                    ]
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    70
                },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    71
                "body": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    72
                    "string": "{\"result\":[{\"id\":\"1285\",\"phid\":\"PHID-DREV-uefuzc6kbhhkoqhr347g\",\"title\":\"test string time\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/D1285\",\"dateCreated\":\"1562019861\",\"dateModified\":\"1562019862\",\"authorPHID\":\"PHID-USER-qmzis76vb2yh3ogldu6r\",\"status\":\"0\",\"statusName\":\"Draft\",\"properties\":{\"draft.broadcast\":false,\"lines.added\":1,\"lines.removed\":0,\"buildables\":{\"PHID-HMBB-lhjiovrsqtbft2fz4lua\":{\"status\":\"passed\"}}},\"branch\":null,\"summary\":\"\",\"testPlan\":\"\",\"lineCount\":\"1\",\"activeDiffPHID\":\"PHID-DIFF-dkgwbpgcv37pymqieyyv\",\"diffs\":[\"2069\"],\"commits\":[],\"reviewers\":[],\"ccs\":[],\"hashes\":[],\"auxiliary\":{\"bugzilla.bug-id\":null,\"phabricator:projects\":[\"PHID-PROJ-f2a3wl5wxtqdtfgdjqzk\"],\"phabricator:depends-on\":[]},\"repositoryPHID\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"sourcePath\":null}],\"error_code\":null,\"error_info\":null}"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    73
                }
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    74
            }
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    75
        },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    76
        {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    77
            "request": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    78
                "body": "api.token=cli-hahayouwish&ids%5B0%5D=2069",
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    79
                "headers": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    80
                    "content-length": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    81
                        "58"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    82
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    83
                    "content-type": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    84
                        "application/x-www-form-urlencoded"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    85
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    86
                    "host": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    87
                        "phab.mercurial-scm.org"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    88
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    89
                    "accept": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    90
                        "application/mercurial-0.1"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    91
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    92
                    "user-agent": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    93
                        "mercurial/proto-1.0 (Mercurial 4.8.2)"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    94
                    ]
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    95
                },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    96
                "method": "POST",
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    97
                "uri": "https://phab.mercurial-scm.org//api/differential.querydiffs"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    98
            },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
    99
            "response": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   100
                "status": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   101
                    "message": "OK",
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   102
                    "code": 200
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   103
                },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   104
                "headers": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   105
                    "content-length": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   106
                        "1137"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   107
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   108
                    "expires": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   109
                        "Sat, 01 Jan 2000 00:00:00 GMT"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   110
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   111
                    "x-content-type-options": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   112
                        "nosniff"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   113
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   114
                    "strict-transport-security": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   115
                        "max-age=31536000; includeSubdomains; preload"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   116
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   117
                    "vary": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   118
                        "Accept-Encoding"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   119
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   120
                    "connection": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   121
                        "keep-alive"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   122
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   123
                    "x-xss-protection": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   124
                        "1; mode=block"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   125
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   126
                    "cache-control": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   127
                        "no-store"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   128
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   129
                    "date": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   130
                        "Mon, 01 Jul 2019 22:36:41 GMT"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   131
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   132
                    "x-frame-options": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   133
                        "Deny"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   134
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   135
                    "referrer-policy": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   136
                        "no-referrer",
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   137
                        "strict-origin-when-cross-origin"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   138
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   139
                    "content-type": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   140
                        "application/json"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   141
                    ]
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   142
                },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   143
                "body": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   144
                    "string": "{\"result\":{\"2069\":{\"id\":\"2069\",\"revisionID\":\"1285\",\"dateCreated\":\"1562019858\",\"dateModified\":\"1562019861\",\"sourceControlBaseRevision\":null,\"sourceControlPath\":null,\"sourceControlSystem\":null,\"branch\":null,\"bookmark\":null,\"creationMethod\":\"web\",\"description\":null,\"unitStatus\":\"4\",\"lintStatus\":\"4\",\"changes\":[{\"id\":\"5416\",\"metadata\":{\"line:first\":1,\"hash.effect\":\"ei3Zy6KS2Wut\"},\"oldPath\":null,\"currentPath\":\"test\",\"awayPaths\":[],\"oldProperties\":[],\"newProperties\":{\"unix:filemode\":\"100644\"},\"type\":\"1\",\"fileType\":\"1\",\"commitHash\":null,\"addLines\":\"1\",\"delLines\":\"0\",\"hunks\":[{\"oldOffset\":\"0\",\"newOffset\":\"1\",\"oldLength\":\"0\",\"newLength\":\"1\",\"addLines\":null,\"delLines\":null,\"isMissingOldNewline\":null,\"isMissingNewNewline\":null,\"corpus\":\"+test\\n\"}]}],\"properties\":{\"local:commits\":{\"da5c8c6bf23a36b6e3af011bc3734460692c23ce\":{\"author\":\"test\",\"authorEmail\":\"test\",\"branch\":\"default\",\"commit\":\"da5c8c6bf23a36b6e3af011bc3734460692c23ce\",\"rev\":\"da5c8c6bf23a36b6e3af011bc3734460692c23ce\",\"parents\":[\"1f634396406d03e565ed645370e5fecd062cf215\"],\"time\":\"1562019844\"}}},\"authorName\":\"test\",\"authorEmail\":\"test\"}},\"error_code\":null,\"error_info\":null}"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   145
                }
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   146
            }
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   147
        },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   148
        {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   149
            "request": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   150
                "body": "diffID=2069&api.token=cli-hahayouwish",
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   151
                "headers": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   152
                    "content-length": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   153
                        "54"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   154
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   155
                    "content-type": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   156
                        "application/x-www-form-urlencoded"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   157
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   158
                    "host": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   159
                        "phab.mercurial-scm.org"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   160
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   161
                    "accept": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   162
                        "application/mercurial-0.1"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   163
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   164
                    "user-agent": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   165
                        "mercurial/proto-1.0 (Mercurial 4.8.2)"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   166
                    ]
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   167
                },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   168
                "method": "POST",
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   169
                "uri": "https://phab.mercurial-scm.org//api/differential.getrawdiff"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   170
            },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   171
            "response": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   172
                "status": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   173
                    "message": "OK",
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   174
                    "code": 200
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   175
                },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   176
                "headers": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   177
                    "content-length": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   178
                        "153"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   179
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   180
                    "expires": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   181
                        "Sat, 01 Jan 2000 00:00:00 GMT"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   182
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   183
                    "x-content-type-options": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   184
                        "nosniff"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   185
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   186
                    "strict-transport-security": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   187
                        "max-age=31536000; includeSubdomains; preload"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   188
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   189
                    "vary": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   190
                        "Accept-Encoding"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   191
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   192
                    "connection": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   193
                        "keep-alive"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   194
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   195
                    "x-xss-protection": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   196
                        "1; mode=block"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   197
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   198
                    "cache-control": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   199
                        "no-store"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   200
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   201
                    "date": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   202
                        "Mon, 01 Jul 2019 22:36:42 GMT"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   203
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   204
                    "x-frame-options": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   205
                        "Deny"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   206
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   207
                    "referrer-policy": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   208
                        "no-referrer",
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   209
                        "strict-origin-when-cross-origin"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   210
                    ],
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   211
                    "content-type": [
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   212
                        "application/json"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   213
                    ]
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   214
                },
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   215
                "body": {
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   216
                    "string": "{\"result\":\"diff --git a\\/test b\\/test\\nnew file mode 100644\\n--- \\/dev\\/null\\n+++ b\\/test\\n@@ -0,0 +1 @@\\n+test\\n\\n\",\"error_code\":null,\"error_info\":null}"
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   217
                }
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   218
            }
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   219
        }
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   220
    ]
7629eb87e7f2 phabricator: demonstrate broken phabread on string local:commit times
Ian Moody <moz-ian@perix.co.uk>
parents:
diff changeset
   221
}