diff --git a/hgext/phabricator.py b/hgext/phabricator.py --- a/hgext/phabricator.py +++ b/hgext/phabricator.py @@ -127,6 +127,13 @@ colortable = { def vcrcommand(name, flags, spec, helpcategory=None): fullflags = flags + _VCR_FLAGS + def hgmatcher(r1, r2): + if r1.uri != r2.uri or r1.method != r2.method: + return False + r1params = r1.body.split(b'&') + r2params = r2.body.split(b'&') + return set(r1params) == set(r2params) + def decorate(fn): def inner(*args, **kwargs): cassette = pycompat.fsdecode(kwargs.pop(r'test_vcr', None)) @@ -143,7 +150,8 @@ def vcrcommand(name, flags, spec, helpca (urlmod, r'httpsconnection', stubs.VCRHTTPSConnection), ]) - with vcr.use_cassette(cassette): + vcr.register_matcher(r'hgmatcher', hgmatcher) + with vcr.use_cassette(cassette, match_on=[r'hgmatcher']): return fn(*args, **kwargs) return fn(*args, **kwargs) inner.__name__ = fn.__name__ diff --git a/tests/phabricator/phabsend-create-alpha.json b/tests/phabricator/phabsend-create-alpha.json --- a/tests/phabricator/phabsend-create-alpha.json +++ b/tests/phabricator/phabsend-create-alpha.json @@ -1,617 +1,617 @@ { + "version": 1, "interactions": [ { "request": { - "method": "POST", - "body": "constraints%5Bcallsigns%5D%5B0%5D=HG&api.token=cli-hahayouwish", - "uri": "https://phab.mercurial-scm.org//api/diffusion.repository.search", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "93" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "79" ] - } + }, + "body": "api.token=cli-hahayouwish&constraints%5Bcallsigns%5D%5B0%5D=HG", + "uri": "https://phab.mercurial-scm.org//api/diffusion.repository.search", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":{\"data\":[{\"id\":2,\"type\":\"REPO\",\"phid\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"fields\":{\"name\":\"Mercurial\",\"vcs\":\"hg\",\"callsign\":\"HG\",\"shortName\":null,\"status\":\"active\",\"isImporting\":false,\"spacePHID\":null,\"dateCreated\":1498761653,\"dateModified\":1500403184,\"policy\":{\"view\":\"public\",\"edit\":\"admin\",\"diffusion.push\":\"users\"}},\"attachments\":{}}],\"maps\":{},\"query\":{\"queryKey\":null},\"cursor\":{\"limit\":100,\"after\":null,\"before\":null,\"order\":null}},\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:23 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:00 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "549" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Fpywot5xerq4gs2tjxw3gnadzdg6vomqmfcnwqddp; expires=Fri, 01-Mar-2024 00:12:23 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":{\"data\":[{\"id\":10,\"type\":\"REPO\",\"phid\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"fields\":{\"name\":\"Mercurial\",\"vcs\":\"hg\",\"callsign\":\"HG\",\"shortName\":\"Mercurial\",\"status\":\"active\",\"isImporting\":false,\"almanacServicePHID\":null,\"spacePHID\":null,\"dateCreated\":1507817156,\"dateModified\":1529613276,\"policy\":{\"view\":\"public\",\"edit\":\"admin\",\"diffusion.push\":\"users\"}},\"attachments\":{}}],\"maps\":{},\"query\":{\"queryKey\":null},\"cursor\":{\"limit\":100,\"after\":null,\"before\":null,\"order\":null}},\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "repositoryPHID=PHID-REPO-bvunnehri4u2isyr7bc3&api.token=cli-hahayouwish&diff=diff+--git+a%2Falpha+b%2Falpha%0Anew+file+mode+100644%0A---+%2Fdev%2Fnull%0A%2B%2B%2B+b%2Falpha%0A%40%40+-0%2C0+%2B1%2C1+%40%40%0A%2Balpha%0A", - "uri": "https://phab.mercurial-scm.org//api/differential.createrawdiff", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "235" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "235" ] - } + }, + "body": "api.token=cli-hahayouwish&diff=diff+--git+a%2Falpha+b%2Falpha%0Anew+file+mode+100644%0A---+%2Fdev%2Fnull%0A%2B%2B%2B+b%2Falpha%0A%40%40+-0%2C0+%2B1%2C1+%40%40%0A%2Balpha%0A&repositoryPHID=PHID-REPO-bvunnehri4u2isyr7bc3", + "uri": "https://phab.mercurial-scm.org//api/differential.createrawdiff", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":{\"id\":14303,\"phid\":\"PHID-DIFF-allzuauvigfjpv4z6dpi\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/differential\\/diff\\/14303\\/\"},\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:24 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:01 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "172" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2F2n2dlkkwzljrpzfghpdsflbt4ftnrwcc446dzcy5; expires=Fri, 01-Mar-2024 00:12:24 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":{\"id\":1899,\"phid\":\"PHID-DIFF-gpg57jico75ouhl2bux2\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/differential\\/diff\\/1899\\/\"},\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "diff_id=14303&data=%7B%22user%22%3A+%22test%22%2C+%22parent%22%3A+%220000000000000000000000000000000000000000%22%2C+%22node%22%3A+%22d386117f30e6b1282897bdbde75ac21e095163d4%22%2C+%22date%22%3A+%220+0%22%7D&api.token=cli-hahayouwish&name=hg%3Ameta", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "296" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "264" ] - } + }, + "body": "diff_id=1899&data=%7B%22branch%22%3A+%22default%22%2C+%22date%22%3A+%220+0%22%2C+%22node%22%3A+%22d386117f30e6b1282897bdbde75ac21e095163d4%22%2C+%22parent%22%3A+%220000000000000000000000000000000000000000%22%2C+%22user%22%3A+%22test%22%7D&name=hg%3Ameta&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:25 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:02 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2F5mq3t25wu5igv7oufpwcoy32fveozo7wn5wni3gw; expires=Fri, 01-Mar-2024 00:12:25 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "diff_id=14303&data=%7B%22d386117f30e6b1282897bdbde75ac21e095163d4%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22time%22%3A+0.0%7D%7D&api.token=cli-hahayouwish&name=local%3Acommits", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "257" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "227" ] - } + }, + "body": "diff_id=1899&data=%7B%22d386117f30e6b1282897bdbde75ac21e095163d4%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22branch%22%3A+%22default%22%2C+%22commit%22%3A+%22d386117f30e6b1282897bdbde75ac21e095163d4%22%2C+%22parents%22%3A+%5B%220000000000000000000000000000000000000000%22%5D%2C+%22time%22%3A+0%7D%7D&name=local%3Acommits&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:25 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:02 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2F5nja6g4cnpt63ctjjwykxyceyb7kokfptrzbejoc; expires=Fri, 01-Mar-2024 00:12:25 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "api.token=cli-hahayouwish&corpus=create+alpha+for+phabricator+test+%E2%82%AC", - "uri": "https://phab.mercurial-scm.org//api/differential.parsecommitmessage", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "93" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "93" ] - } + }, + "body": "api.token=cli-hahayouwish&corpus=create+alpha+for+phabricator+test+%E2%82%AC", + "uri": "https://phab.mercurial-scm.org//api/differential.parsecommitmessage", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":{\"errors\":[],\"fields\":{\"title\":\"create alpha for phabricator test \\u20ac\"},\"revisionIDFieldInfo\":{\"value\":null,\"validDomain\":\"https:\\/\\/phab.mercurial-scm.org\"}},\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:26 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:03 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "298" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Fkrxawhyvcd4jhv77inuwdmzcci4f7kql6c7l3smz; expires=Fri, 01-Mar-2024 00:12:26 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":{\"errors\":[],\"fields\":{\"title\":\"create alpha for phabricator test \\u20ac\"},\"revisionIDFieldInfo\":{\"value\":null,\"validDomain\":\"https:\\/\\/phab.mercurial-scm.org\"},\"transactions\":[{\"type\":\"title\",\"value\":\"create alpha for phabricator test \\u20ac\"}]},\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "transactions%5B0%5D%5Btype%5D=update&transactions%5B0%5D%5Bvalue%5D=PHID-DIFF-allzuauvigfjpv4z6dpi&transactions%5B1%5D%5Btype%5D=title&transactions%5B1%5D%5Bvalue%5D=create+alpha+for+phabricator+test+%E2%82%AC&api.token=cli-hahayouwish", - "uri": "https://phab.mercurial-scm.org//api/differential.revision.edit", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "252" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "252" ] - } + }, + "body": "api.token=cli-hahayouwish&transactions%5B0%5D%5Btype%5D=update&transactions%5B0%5D%5Bvalue%5D=PHID-DIFF-gpg57jico75ouhl2bux2&transactions%5B1%5D%5Btype%5D=title&transactions%5B1%5D%5Bvalue%5D=create+alpha+for+phabricator+test+%E2%82%AC", + "uri": "https://phab.mercurial-scm.org//api/differential.revision.edit", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":{\"object\":{\"id\":6054,\"phid\":\"PHID-DREV-6pczsbtdpqjc2nskmxwy\"},\"transactions\":[{\"phid\":\"PHID-XACT-DREV-efgl4j4fesixjog\"},{\"phid\":\"PHID-XACT-DREV-xj7ksjeyfadwf5m\"},{\"phid\":\"PHID-XACT-DREV-gecx5zw42kkuffc\"},{\"phid\":\"PHID-XACT-DREV-asda7zcwgzdadoi\"},{\"phid\":\"PHID-XACT-DREV-ku26t33y6iiugjw\"}]},\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:27 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:04 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "294" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Fjwgcqb5hvbltjq4jqbpauz7rmmhpuh2rb7phsdmf; expires=Fri, 01-Mar-2024 00:12:27 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":{\"object\":{\"id\":1190,\"phid\":\"PHID-DREV-kikesmfxhzpfaxbzgj3l\"},\"transactions\":[{\"phid\":\"PHID-XACT-DREV-od4nnssrqj57m6x\"},{\"phid\":\"PHID-XACT-DREV-2prb5lagzng6uqt\"},{\"phid\":\"PHID-XACT-DREV-qu7o6fgwssovbwb\"},{\"phid\":\"PHID-XACT-DREV-uynfy6n3u6new5f\"}]},\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "api.token=cli-hahayouwish&ids%5B0%5D=6054", - "uri": "https://phab.mercurial-scm.org//api/differential.query", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "58" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "58" ] - } + }, + "body": "ids%5B0%5D=1190&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.query", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":[{\"id\":\"6054\",\"phid\":\"PHID-DREV-6pczsbtdpqjc2nskmxwy\",\"title\":\"create alpha for phabricator test \\u20ac\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/D6054\",\"dateCreated\":\"1551571947\",\"dateModified\":\"1551571947\",\"authorPHID\":\"PHID-USER-5iy6mkoveguhm2zthvww\",\"status\":\"0\",\"statusName\":\"Needs Review\",\"properties\":[],\"branch\":null,\"summary\":\"\",\"testPlan\":\"\",\"lineCount\":\"1\",\"activeDiffPHID\":\"PHID-DIFF-allzuauvigfjpv4z6dpi\",\"diffs\":[\"14303\"],\"commits\":[],\"reviewers\":{\"PHID-PROJ-3dvcxzznrjru2xmmses3\":\"PHID-PROJ-3dvcxzznrjru2xmmses3\"},\"ccs\":[\"PHID-USER-q42dn7cc3donqriafhjx\"],\"hashes\":[],\"auxiliary\":{\"phabricator:projects\":[],\"phabricator:depends-on\":[]},\"repositoryPHID\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"sourcePath\":null}],\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:28 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:05 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "778" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2F3lgkbbyaa646ng5klghjyehsbjxtaqblipnvocuz; expires=Fri, 01-Mar-2024 00:12:28 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":[{\"id\":\"1190\",\"phid\":\"PHID-DREV-kikesmfxhzpfaxbzgj3l\",\"title\":\"create alpha for phabricator test \\u20ac\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/D1190\",\"dateCreated\":\"1557063064\",\"dateModified\":\"1557063064\",\"authorPHID\":\"PHID-USER-qmzis76vb2yh3ogldu6r\",\"status\":\"0\",\"statusName\":\"Draft\",\"properties\":{\"draft.broadcast\":false,\"lines.added\":1,\"lines.removed\":0},\"branch\":null,\"summary\":\"\",\"testPlan\":\"\",\"lineCount\":\"1\",\"activeDiffPHID\":\"PHID-DIFF-gpg57jico75ouhl2bux2\",\"diffs\":[\"1899\"],\"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}" } } }, { "request": { - "method": "POST", - "body": "diff_id=14303&data=%7B%22user%22%3A+%22test%22%2C+%22parent%22%3A+%220000000000000000000000000000000000000000%22%2C+%22node%22%3A+%22cb03845d6dd98c72bec766c7ed08c693cc49817a%22%2C+%22date%22%3A+%220+0%22%7D&api.token=cli-hahayouwish&name=hg%3Ameta", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "296" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "264" ] - } + }, + "body": "diff_id=1899&data=%7B%22branch%22%3A+%22default%22%2C+%22date%22%3A+%220+0%22%2C+%22node%22%3A+%22a86ed7d85e866f01161e9f55cee5d116272f508f%22%2C+%22parent%22%3A+%220000000000000000000000000000000000000000%22%2C+%22user%22%3A+%22test%22%7D&name=hg%3Ameta&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:28 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:06 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Fwjxvlsjqmqwvcljfv6oe2sbometi3gebps6vzrlw; expires=Fri, 01-Mar-2024 00:12:28 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "diff_id=14303&data=%7B%22cb03845d6dd98c72bec766c7ed08c693cc49817a%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22time%22%3A+0.0%7D%7D&api.token=cli-hahayouwish&name=local%3Acommits", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "257" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "227" ] - } + }, + "body": "diff_id=1899&data=%7B%22a86ed7d85e866f01161e9f55cee5d116272f508f%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22branch%22%3A+%22default%22%2C+%22commit%22%3A+%22a86ed7d85e866f01161e9f55cee5d116272f508f%22%2C+%22parents%22%3A+%5B%220000000000000000000000000000000000000000%22%5D%2C+%22time%22%3A+0%7D%7D&name=local%3Acommits&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:29 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:06 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Foeyncgzaanzmnhgfc7ecvmu5pq7qju7ewq6tvgrp; expires=Fri, 01-Mar-2024 00:12:29 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } } } - ], - "version": 1 + ] } diff --git a/tests/phabricator/phabsend-create-public.json b/tests/phabricator/phabsend-create-public.json --- a/tests/phabricator/phabsend-create-public.json +++ b/tests/phabricator/phabsend-create-public.json @@ -1,957 +1,957 @@ { + "version": 1, "interactions": [ { - "response": { + "request": { "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "93" + ], "content-type": [ - "application/json" - ], - "date": [ - "Thu, 10 Jan 2019 04:08:24 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], - "cache-control": [ - "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-frame-options": [ - "Deny" - ], - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2F5faozuxaekgxbyfcc43jvrcmbr5fscbki46mvcvl; expires=Tue, 09-Jan-2024 04:08:24 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" - ] - }, - "status": { - "message": "OK", - "code": 200 - }, - "body": { - "string": "{\"result\":{\"data\":[{\"id\":2,\"type\":\"REPO\",\"phid\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"fields\":{\"name\":\"Mercurial\",\"vcs\":\"hg\",\"callsign\":\"HG\",\"shortName\":null,\"status\":\"active\",\"isImporting\":false,\"spacePHID\":null,\"dateCreated\":1498761653,\"dateModified\":1500403184,\"policy\":{\"view\":\"public\",\"edit\":\"admin\",\"diffusion.push\":\"users\"}},\"attachments\":{}}],\"maps\":{},\"query\":{\"queryKey\":null},\"cursor\":{\"limit\":100,\"after\":null,\"before\":null,\"order\":null}},\"error_code\":null,\"error_info\":null}" - } - }, - "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/diffusion.repository.search", - "headers": { - "content-length": [ - "79" - ], + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "constraints%5Bcallsigns%5D%5B0%5D=HG&api.token=cli-hahayouwish" - } - }, - { + }, + "body": "api.token=cli-hahayouwish&constraints%5Bcallsigns%5D%5B0%5D=HG", + "uri": "https://phab.mercurial-scm.org//api/diffusion.repository.search", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { + "x-xss-protection": [ + "1; mode=block" + ], + "cache-control": [ + "no-store" + ], "content-type": [ "application/json" - ], + ], "date": [ - "Thu, 10 Jan 2019 04:08:25 GMT" - ], + "Sun, 05 May 2019 13:31:20 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "549" + ], "x-content-type-options": [ "nosniff" - ], - "cache-control": [ - "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-frame-options": [ - "Deny" - ], + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2Fkb72422mbpyuyoultl4hkizat6qscjgrl5hi6k2n; expires=Tue, 09-Jan-2024 04:08:25 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { - "string": "{\"result\":{\"id\":13121,\"phid\":\"PHID-DIFF-xrku5f3mlveqr3hhj6a7\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/differential\\/diff\\/13121\\/\"},\"error_code\":null,\"error_info\":null}" + "string": "{\"result\":{\"data\":[{\"id\":10,\"type\":\"REPO\",\"phid\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"fields\":{\"name\":\"Mercurial\",\"vcs\":\"hg\",\"callsign\":\"HG\",\"shortName\":\"Mercurial\",\"status\":\"active\",\"isImporting\":false,\"almanacServicePHID\":null,\"spacePHID\":null,\"dateCreated\":1507817156,\"dateModified\":1529613276,\"policy\":{\"view\":\"public\",\"edit\":\"admin\",\"diffusion.push\":\"users\"}},\"attachments\":{}}],\"maps\":{},\"query\":{\"queryKey\":null},\"cursor\":{\"limit\":100,\"after\":null,\"before\":null,\"order\":null}},\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.createrawdiff", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ "220" - ], + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "repositoryPHID=PHID-REPO-bvunnehri4u2isyr7bc3&diff=diff+--git+a%2Fbeta+b%2Fbeta%0A---+a%2Fbeta%0A%2B%2B%2B+b%2Fbeta%0A%40%40+-1%2C1+%2B1%2C1+%40%40%0A-beta%0A%2Bpublic+change%0A&api.token=cli-hahayouwish" - } - }, - { + }, + "body": "api.token=cli-hahayouwish&diff=diff+--git+a%2Fbeta+b%2Fbeta%0A---+a%2Fbeta%0A%2B%2B%2B+b%2Fbeta%0A%40%40+-1%2C1+%2B1%2C1+%40%40%0A-beta%0A%2Bpublic+change%0A&repositoryPHID=PHID-REPO-bvunnehri4u2isyr7bc3", + "uri": "https://phab.mercurial-scm.org//api/differential.createrawdiff", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { + "x-xss-protection": [ + "1; mode=block" + ], + "cache-control": [ + "no-store" + ], "content-type": [ "application/json" - ], + ], "date": [ - "Thu, 10 Jan 2019 04:08:25 GMT" - ], + "Sun, 05 May 2019 13:31:21 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "172" + ], "x-content-type-options": [ "nosniff" - ], - "cache-control": [ - "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-frame-options": [ - "Deny" - ], + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2Fpyr677mjsjvlsn3wwzl2iignpppablawwz7dn5ap; expires=Tue, 09-Jan-2024 04:08:25 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" + "string": "{\"result\":{\"id\":1902,\"phid\":\"PHID-DIFF-uuzq4s7s72y4ts7ijduc\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/differential\\/diff\\/1902\\/\"},\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ - "264" - ], + "296" + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "name=hg%3Ameta&api.token=cli-hahayouwish&data=%7B%22date%22%3A+%220+0%22%2C+%22user%22%3A+%22test%22%2C+%22node%22%3A+%22540a21d3fbeb7c56cafe726bba6cd9fdcc94f29c%22%2C+%22parent%22%3A+%22c2b605ada280b38c38031b5d31622869c72b0d8d%22%7D&diff_id=13121" - } - }, - { + }, + "body": "diff_id=1902&data=%7B%22branch%22%3A+%22default%22%2C+%22date%22%3A+%220+0%22%2C+%22node%22%3A+%2224ffd6bca53a1e05369ed5b8834587c2b2b364da%22%2C+%22parent%22%3A+%222837deb84f4ab1315c1197b8aef10c620465e352%22%2C+%22user%22%3A+%22test%22%7D&name=hg%3Ameta&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { - "content-type": [ - "application/json" - ], - "date": [ - "Thu, 10 Jan 2019 04:08:26 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], + "x-xss-protection": [ + "1; mode=block" + ], "cache-control": [ "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], + ], + "content-type": [ + "application/json" + ], + "date": [ + "Sun, 05 May 2019 13:31:22 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], "x-frame-options": [ "Deny" - ], + ], + "content-length": [ + "51" + ], + "x-content-type-options": [ + "nosniff" + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2Fegvbvujn6hykhurzyjtaq4xduxl6sz7gavenbcou; expires=Tue, 09-Jan-2024 04:08:26 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ - "227" - ], + "257" + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "name=local%3Acommits&api.token=cli-hahayouwish&data=%7B%22540a21d3fbeb7c56cafe726bba6cd9fdcc94f29c%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22time%22%3A+0.0%7D%7D&diff_id=13121" - } - }, - { + }, + "body": "diff_id=1902&data=%7B%2224ffd6bca53a1e05369ed5b8834587c2b2b364da%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22branch%22%3A+%22default%22%2C+%22commit%22%3A+%2224ffd6bca53a1e05369ed5b8834587c2b2b364da%22%2C+%22parents%22%3A+%5B%222837deb84f4ab1315c1197b8aef10c620465e352%22%5D%2C+%22time%22%3A+0%7D%7D&name=local%3Acommits&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { + "x-xss-protection": [ + "1; mode=block" + ], + "cache-control": [ + "no-store" + ], "content-type": [ "application/json" - ], + ], "date": [ - "Thu, 10 Jan 2019 04:08:26 GMT" - ], + "Sun, 05 May 2019 13:31:23 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], "x-content-type-options": [ "nosniff" - ], - "cache-control": [ - "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-frame-options": [ - "Deny" - ], + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2Flbjzqvie4g24kmhnqws2bwhmeiijd3qvvkd22isg; expires=Tue, 09-Jan-2024 04:08:27 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { - "string": "{\"result\":{\"errors\":[],\"fields\":{\"title\":\"create public change for phabricator testing\"},\"revisionIDFieldInfo\":{\"value\":null,\"validDomain\":\"https:\\/\\/phab.mercurial-scm.org\"}},\"error_code\":null,\"error_info\":null}" + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.parsecommitmessage", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ "94" - ], + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "corpus=create+public+change+for+phabricator+testing&api.token=cli-hahayouwish" - } - }, - { + }, + "body": "api.token=cli-hahayouwish&corpus=create+public+change+for+phabricator+testing", + "uri": "https://phab.mercurial-scm.org//api/differential.parsecommitmessage", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { + "x-xss-protection": [ + "1; mode=block" + ], + "cache-control": [ + "no-store" + ], "content-type": [ "application/json" - ], + ], "date": [ - "Thu, 10 Jan 2019 04:08:27 GMT" - ], + "Sun, 05 May 2019 13:31:23 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "306" + ], "x-content-type-options": [ "nosniff" - ], - "cache-control": [ - "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-frame-options": [ - "Deny" - ], + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2Fkclyjmm2warvrxwksppx3qxupj4f72ejvxuavrn5; expires=Tue, 09-Jan-2024 04:08:27 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { - "string": "{\"result\":{\"object\":{\"id\":5544,\"phid\":\"PHID-DREV-bwugldlyieuwzrk76xzy\"},\"transactions\":[{\"phid\":\"PHID-XACT-DREV-wojlvnhodzdoqh6\"},{\"phid\":\"PHID-XACT-DREV-ju3bw7rltmmwpbf\"},{\"phid\":\"PHID-XACT-DREV-2hwwi7dagftdp6q\"},{\"phid\":\"PHID-XACT-DREV-zfsyu5o7wkqzh6s\"},{\"phid\":\"PHID-XACT-DREV-srrkwmheqn6gssk\"}]},\"error_code\":null,\"error_info\":null}" + "string": "{\"result\":{\"errors\":[],\"fields\":{\"title\":\"create public change for phabricator testing\"},\"revisionIDFieldInfo\":{\"value\":null,\"validDomain\":\"https:\\/\\/phab.mercurial-scm.org\"},\"transactions\":[{\"type\":\"title\",\"value\":\"create public change for phabricator testing\"}]},\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.revision.edit", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ "253" - ], + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "transactions%5B0%5D%5Btype%5D=update&transactions%5B0%5D%5Bvalue%5D=PHID-DIFF-xrku5f3mlveqr3hhj6a7&transactions%5B1%5D%5Btype%5D=title&transactions%5B1%5D%5Bvalue%5D=create+public+change+for+phabricator+testing&api.token=cli-hahayouwish" - } - }, - { + }, + "body": "api.token=cli-hahayouwish&transactions%5B0%5D%5Btype%5D=update&transactions%5B0%5D%5Bvalue%5D=PHID-DIFF-uuzq4s7s72y4ts7ijduc&transactions%5B1%5D%5Btype%5D=title&transactions%5B1%5D%5Bvalue%5D=create+public+change+for+phabricator+testing", + "uri": "https://phab.mercurial-scm.org//api/differential.revision.edit", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { + "x-xss-protection": [ + "1; mode=block" + ], + "cache-control": [ + "no-store" + ], "content-type": [ "application/json" - ], + ], "date": [ - "Thu, 10 Jan 2019 04:08:28 GMT" - ], + "Sun, 05 May 2019 13:31:24 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "294" + ], "x-content-type-options": [ "nosniff" - ], - "cache-control": [ - "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-frame-options": [ - "Deny" - ], + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2Fbw4ordbzl7d4hcgyyxnoawhrfhycrvvkk6arnz5p; expires=Tue, 09-Jan-2024 04:08:28 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { - "string": "{\"result\":{\"id\":13122,\"phid\":\"PHID-DIFF-iksauhhfhmxfjijyqxji\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/differential\\/diff\\/13122\\/\"},\"error_code\":null,\"error_info\":null}" + "string": "{\"result\":{\"object\":{\"id\":1192,\"phid\":\"PHID-DREV-qb4xy3abx7eu4puizvjl\"},\"transactions\":[{\"phid\":\"PHID-XACT-DREV-n2zlzs5qmdlvfbx\"},{\"phid\":\"PHID-XACT-DREV-dwojtdj2d3geffe\"},{\"phid\":\"PHID-XACT-DREV-gr4vgeynol22tgf\"},{\"phid\":\"PHID-XACT-DREV-aighrcyai72tgzv\"}]},\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.createrawdiff", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ "232" - ], + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "repositoryPHID=PHID-REPO-bvunnehri4u2isyr7bc3&diff=diff+--git+a%2Falpha+b%2Falpha%0A---+a%2Falpha%0A%2B%2B%2B+b%2Falpha%0A%40%40+-1%2C2+%2B1%2C1+%40%40%0A-alpha%0A-more%0A%2Bdraft+change%0A&api.token=cli-hahayouwish" - } - }, - { + }, + "body": "api.token=cli-hahayouwish&diff=diff+--git+a%2Falpha+b%2Falpha%0A---+a%2Falpha%0A%2B%2B%2B+b%2Falpha%0A%40%40+-1%2C2+%2B1%2C1+%40%40%0A-alpha%0A-more%0A%2Bdraft+change%0A&repositoryPHID=PHID-REPO-bvunnehri4u2isyr7bc3", + "uri": "https://phab.mercurial-scm.org//api/differential.createrawdiff", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { + "x-xss-protection": [ + "1; mode=block" + ], + "cache-control": [ + "no-store" + ], "content-type": [ "application/json" - ], + ], "date": [ - "Thu, 10 Jan 2019 04:08:29 GMT" - ], + "Sun, 05 May 2019 13:31:25 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "172" + ], "x-content-type-options": [ "nosniff" - ], - "cache-control": [ - "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-frame-options": [ - "Deny" - ], + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2Fgt3wmrrlkmpdhyaj5rsesxcwbabhpjlhoa6matcg; expires=Tue, 09-Jan-2024 04:08:29 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" + "string": "{\"result\":{\"id\":1903,\"phid\":\"PHID-DIFF-4pugk2zedyh2xm27uuvh\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/differential\\/diff\\/1903\\/\"},\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ - "264" - ], + "296" + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "name=hg%3Ameta&api.token=cli-hahayouwish&data=%7B%22date%22%3A+%220+0%22%2C+%22user%22%3A+%22test%22%2C+%22node%22%3A+%226bca752686cd24e603094ef55574655c0017723a%22%2C+%22parent%22%3A+%22540a21d3fbeb7c56cafe726bba6cd9fdcc94f29c%22%7D&diff_id=13122" - } - }, - { + }, + "body": "diff_id=1903&data=%7B%22branch%22%3A+%22default%22%2C+%22date%22%3A+%220+0%22%2C+%22node%22%3A+%22ac331633be793e0d4159d5525b404a9782f54904%22%2C+%22parent%22%3A+%2224ffd6bca53a1e05369ed5b8834587c2b2b364da%22%2C+%22user%22%3A+%22test%22%7D&name=hg%3Ameta&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { - "content-type": [ - "application/json" - ], - "date": [ - "Thu, 10 Jan 2019 04:08:29 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], + "x-xss-protection": [ + "1; mode=block" + ], "cache-control": [ "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], + ], + "content-type": [ + "application/json" + ], + "date": [ + "Sun, 05 May 2019 13:31:26 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], "x-frame-options": [ "Deny" - ], + ], + "content-length": [ + "51" + ], + "x-content-type-options": [ + "nosniff" + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2Fntcsqzh6pptdkfnebvmck6l3y3rrwxzotvsq4phl; expires=Tue, 09-Jan-2024 04:08:29 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ - "227" - ], + "257" + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "name=local%3Acommits&api.token=cli-hahayouwish&data=%7B%226bca752686cd24e603094ef55574655c0017723a%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22time%22%3A+0.0%7D%7D&diff_id=13122" - } - }, - { + }, + "body": "diff_id=1903&data=%7B%22ac331633be793e0d4159d5525b404a9782f54904%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22branch%22%3A+%22default%22%2C+%22commit%22%3A+%22ac331633be793e0d4159d5525b404a9782f54904%22%2C+%22parents%22%3A+%5B%2224ffd6bca53a1e05369ed5b8834587c2b2b364da%22%5D%2C+%22time%22%3A+0%7D%7D&name=local%3Acommits&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { + "x-xss-protection": [ + "1; mode=block" + ], + "cache-control": [ + "no-store" + ], "content-type": [ "application/json" - ], + ], "date": [ - "Thu, 10 Jan 2019 04:08:30 GMT" - ], + "Sun, 05 May 2019 13:31:27 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], "x-content-type-options": [ "nosniff" - ], - "cache-control": [ - "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-frame-options": [ - "Deny" - ], + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2Fgturi5p5fz64q26mztdrzjldzynp62pp7opcxsnm; expires=Tue, 09-Jan-2024 04:08:30 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { - "string": "{\"result\":{\"errors\":[],\"fields\":{\"title\":\"create draft change for phabricator testing\"},\"revisionIDFieldInfo\":{\"value\":null,\"validDomain\":\"https:\\/\\/phab.mercurial-scm.org\"}},\"error_code\":null,\"error_info\":null}" + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.parsecommitmessage", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ "93" - ], + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "corpus=create+draft+change+for+phabricator+testing&api.token=cli-hahayouwish" - } - }, - { + }, + "body": "api.token=cli-hahayouwish&corpus=create+draft+change+for+phabricator+testing", + "uri": "https://phab.mercurial-scm.org//api/differential.parsecommitmessage", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { + "x-xss-protection": [ + "1; mode=block" + ], + "cache-control": [ + "no-store" + ], "content-type": [ "application/json" - ], + ], "date": [ - "Thu, 10 Jan 2019 04:08:31 GMT" - ], + "Sun, 05 May 2019 13:31:27 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "304" + ], "x-content-type-options": [ "nosniff" - ], - "cache-control": [ - "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-frame-options": [ - "Deny" - ], + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2F4vyvyabatbn7y5bhav6nthgdt4mm6oeh6ybvnrl5; expires=Tue, 09-Jan-2024 04:08:31 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { - "string": "{\"result\":{\"object\":{\"id\":5545,\"phid\":\"PHID-DREV-ga6i6vbmatvd2fszrr2o\"},\"transactions\":[{\"phid\":\"PHID-XACT-DREV-epqu5uekkf4ig67\"},{\"phid\":\"PHID-XACT-DREV-y3t5z573bwbqv7e\"},{\"phid\":\"PHID-XACT-DREV-dmjvlq7wngqgwxv\"},{\"phid\":\"PHID-XACT-DREV-rkm576j6wvji3ye\"},{\"phid\":\"PHID-XACT-DREV-mb7ttr44lno6j2w\"},{\"phid\":\"PHID-XACT-DREV-ma747d2dkzk3eun\"},{\"phid\":\"PHID-XACT-DREV-3u7lqg7mwxrix5w\"},{\"phid\":\"PHID-XACT-DREV-r33n73dqn7doz7b\"}]},\"error_code\":null,\"error_info\":null}" + "string": "{\"result\":{\"errors\":[],\"fields\":{\"title\":\"create draft change for phabricator testing\"},\"revisionIDFieldInfo\":{\"value\":null,\"validDomain\":\"https:\\/\\/phab.mercurial-scm.org\"},\"transactions\":[{\"type\":\"title\",\"value\":\"create draft change for phabricator testing\"}]},\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.revision.edit", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ "409" - ], + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "transactions%5B0%5D%5Btype%5D=update&transactions%5B0%5D%5Bvalue%5D=PHID-DIFF-iksauhhfhmxfjijyqxji&transactions%5B1%5D%5Btype%5D=summary&transactions%5B1%5D%5Bvalue%5D=Depends+on+D5544&transactions%5B2%5D%5Btype%5D=summary&transactions%5B2%5D%5Bvalue%5D=+&transactions%5B3%5D%5Btype%5D=title&transactions%5B3%5D%5Bvalue%5D=create+draft+change+for+phabricator+testing&api.token=cli-hahayouwish" - } - }, - { + }, + "body": "api.token=cli-hahayouwish&transactions%5B0%5D%5Btype%5D=update&transactions%5B0%5D%5Bvalue%5D=PHID-DIFF-4pugk2zedyh2xm27uuvh&transactions%5B1%5D%5Btype%5D=summary&transactions%5B1%5D%5Bvalue%5D=Depends+on+D1192&transactions%5B2%5D%5Btype%5D=summary&transactions%5B2%5D%5Bvalue%5D=+&transactions%5B3%5D%5Btype%5D=title&transactions%5B3%5D%5Bvalue%5D=create+draft+change+for+phabricator+testing", + "uri": "https://phab.mercurial-scm.org//api/differential.revision.edit", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { + "x-xss-protection": [ + "1; mode=block" + ], + "cache-control": [ + "no-store" + ], "content-type": [ "application/json" - ], + ], "date": [ - "Thu, 10 Jan 2019 04:08:32 GMT" - ], + "Sun, 05 May 2019 13:31:29 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "420" + ], "x-content-type-options": [ "nosniff" - ], - "cache-control": [ - "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-frame-options": [ - "Deny" - ], + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2Fvd66cz7uxztfwfapgqrlmfmoj7szo5wvwk7vqc2u; expires=Tue, 09-Jan-2024 04:08:32 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { - "string": "{\"result\":[{\"id\":\"5545\",\"phid\":\"PHID-DREV-ga6i6vbmatvd2fszrr2o\",\"title\":\"create draft change for phabricator testing\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/D5545\",\"dateCreated\":\"1547093311\",\"dateModified\":\"1547093311\",\"authorPHID\":\"PHID-USER-tzhaient733lwrlbcag5\",\"status\":\"0\",\"statusName\":\"Needs Review\",\"properties\":[],\"branch\":null,\"summary\":\" \",\"testPlan\":\"\",\"lineCount\":\"3\",\"activeDiffPHID\":\"PHID-DIFF-iksauhhfhmxfjijyqxji\",\"diffs\":[\"13122\"],\"commits\":[],\"reviewers\":{\"PHID-PROJ-3dvcxzznrjru2xmmses3\":\"PHID-PROJ-3dvcxzznrjru2xmmses3\"},\"ccs\":[\"PHID-USER-q42dn7cc3donqriafhjx\"],\"hashes\":[],\"auxiliary\":{\"phabricator:projects\":[],\"phabricator:depends-on\":[\"PHID-DREV-bwugldlyieuwzrk76xzy\"]},\"repositoryPHID\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"sourcePath\":null},{\"id\":\"5544\",\"phid\":\"PHID-DREV-bwugldlyieuwzrk76xzy\",\"title\":\"create public change for phabricator testing\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/D5544\",\"dateCreated\":\"1547093307\",\"dateModified\":\"1547093311\",\"authorPHID\":\"PHID-USER-tzhaient733lwrlbcag5\",\"status\":\"0\",\"statusName\":\"Needs Review\",\"properties\":[],\"branch\":null,\"summary\":\"\",\"testPlan\":\"\",\"lineCount\":\"2\",\"activeDiffPHID\":\"PHID-DIFF-xrku5f3mlveqr3hhj6a7\",\"diffs\":[\"13121\"],\"commits\":[],\"reviewers\":{\"PHID-PROJ-3dvcxzznrjru2xmmses3\":\"PHID-PROJ-3dvcxzznrjru2xmmses3\"},\"ccs\":[\"PHID-USER-q42dn7cc3donqriafhjx\"],\"hashes\":[],\"auxiliary\":{\"phabricator:projects\":[],\"phabricator:depends-on\":[]},\"repositoryPHID\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"sourcePath\":null}],\"error_code\":null,\"error_info\":null}" + "string": "{\"result\":{\"object\":{\"id\":1193,\"phid\":\"PHID-DREV-shdibf6gnumia7pou4wo\"},\"transactions\":[{\"phid\":\"PHID-XACT-DREV-5lh4bjyat7sopph\"},{\"phid\":\"PHID-XACT-DREV-ihh5mnfq4lfd7z6\"},{\"phid\":\"PHID-XACT-DREV-jqgmk2a3klvofsk\"},{\"phid\":\"PHID-XACT-DREV-w5t5g4ke6kjynf3\"},{\"phid\":\"PHID-XACT-DREV-ro7ijohdoyaes55\"},{\"phid\":\"PHID-XACT-DREV-4g3uhii5akj24he\"},{\"phid\":\"PHID-XACT-DREV-44imsawbkha5nqw\"}]},\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.query", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ "74" - ], + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "ids%5B0%5D=5544&ids%5B1%5D=5545&api.token=cli-hahayouwish" - } - }, - { + }, + "body": "ids%5B0%5D=1192&ids%5B1%5D=1193&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.query", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { + "x-xss-protection": [ + "1; mode=block" + ], + "cache-control": [ + "no-store" + ], "content-type": [ "application/json" - ], + ], "date": [ - "Thu, 10 Jan 2019 04:08:32 GMT" - ], + "Sun, 05 May 2019 13:31:29 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "1522" + ], "x-content-type-options": [ "nosniff" - ], - "cache-control": [ - "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-frame-options": [ - "Deny" - ], + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2Fbqbv2blmnjqe3a5qkpewf5wghxqwcuewjbgfrtq7; expires=Tue, 09-Jan-2024 04:08:32 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" + "string": "{\"result\":[{\"id\":\"1193\",\"phid\":\"PHID-DREV-shdibf6gnumia7pou4wo\",\"title\":\"create draft change for phabricator testing\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/D1193\",\"dateCreated\":\"1557063088\",\"dateModified\":\"1557063088\",\"authorPHID\":\"PHID-USER-qmzis76vb2yh3ogldu6r\",\"status\":\"0\",\"statusName\":\"Draft\",\"properties\":{\"draft.broadcast\":false,\"lines.added\":1,\"lines.removed\":2},\"branch\":null,\"summary\":\" \",\"testPlan\":\"\",\"lineCount\":\"3\",\"activeDiffPHID\":\"PHID-DIFF-4pugk2zedyh2xm27uuvh\",\"diffs\":[\"1903\"],\"commits\":[],\"reviewers\":[],\"ccs\":[],\"hashes\":[],\"auxiliary\":{\"bugzilla.bug-id\":null,\"phabricator:projects\":[\"PHID-PROJ-f2a3wl5wxtqdtfgdjqzk\"],\"phabricator:depends-on\":[\"PHID-DREV-qb4xy3abx7eu4puizvjl\"]},\"repositoryPHID\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"sourcePath\":null},{\"id\":\"1192\",\"phid\":\"PHID-DREV-qb4xy3abx7eu4puizvjl\",\"title\":\"create public change for phabricator testing\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/D1192\",\"dateCreated\":\"1557063084\",\"dateModified\":\"1557063088\",\"authorPHID\":\"PHID-USER-qmzis76vb2yh3ogldu6r\",\"status\":\"0\",\"statusName\":\"Needs Review\",\"properties\":{\"draft.broadcast\":true,\"lines.added\":1,\"lines.removed\":1},\"branch\":null,\"summary\":\"\",\"testPlan\":\"\",\"lineCount\":\"2\",\"activeDiffPHID\":\"PHID-DIFF-uuzq4s7s72y4ts7ijduc\",\"diffs\":[\"1902\"],\"commits\":[],\"reviewers\":[],\"ccs\":[],\"hashes\":[],\"auxiliary\":{\"bugzilla.bug-id\":null,\"phabricator:projects\":[],\"phabricator:depends-on\":[]},\"repositoryPHID\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"sourcePath\":null}],\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ - "264" - ], + "296" + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "name=hg%3Ameta&api.token=cli-hahayouwish&data=%7B%22date%22%3A+%220+0%22%2C+%22user%22%3A+%22test%22%2C+%22node%22%3A+%22620a50fd6ed958bbee178052de67acc31dcac66e%22%2C+%22parent%22%3A+%22540a21d3fbeb7c56cafe726bba6cd9fdcc94f29c%22%7D&diff_id=13122" - } - }, - { + }, + "body": "diff_id=1903&data=%7B%22branch%22%3A+%22default%22%2C+%22date%22%3A+%220+0%22%2C+%22node%22%3A+%22a19f1434f9a578325eb9799c9961b5465d4e6e40%22%2C+%22parent%22%3A+%2224ffd6bca53a1e05369ed5b8834587c2b2b364da%22%2C+%22user%22%3A+%22test%22%7D&name=hg%3Ameta&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" + }, "response": { + "status": { + "code": 200, + "message": "OK" + }, "headers": { - "content-type": [ - "application/json" - ], - "date": [ - "Thu, 10 Jan 2019 04:08:33 GMT" - ], - "x-content-type-options": [ - "nosniff" - ], + "x-xss-protection": [ + "1; mode=block" + ], "cache-control": [ "no-store" - ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "x-xss-protection": [ - "1; mode=block" - ], + ], + "content-type": [ + "application/json" + ], + "date": [ + "Sun, 05 May 2019 13:31:30 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], "x-frame-options": [ "Deny" - ], + ], + "content-length": [ + "51" + ], + "x-content-type-options": [ + "nosniff" + ], "expires": [ "Sat, 01 Jan 2000 00:00:00 GMT" - ], - "set-cookie": [ - "phsid=A%2Fic7sfd33zs7c44ojloujnoicm3roxnre45glurgz; expires=Tue, 09-Jan-2024 04:08:33 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "transfer-encoding": [ - "chunked" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" ] - }, - "status": { - "message": "OK", - "code": 200 - }, + }, "body": { "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } - }, + } + }, + { "request": { - "method": "POST", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], "content-length": [ - "227" - ], + "257" + ], + "content-type": [ + "application/x-www-form-urlencoded" + ], "accept": [ "application/mercurial-0.1" - ], - "content-type": [ - "application/x-www-form-urlencoded" - ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.8.2+682-e2cf04a597cc+20190109)" - ], + ], "host": [ "phab.mercurial-scm.org" ] - }, - "body": "name=local%3Acommits&api.token=cli-hahayouwish&data=%7B%22620a50fd6ed958bbee178052de67acc31dcac66e%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22time%22%3A+0.0%7D%7D&diff_id=13122" + }, + "body": "diff_id=1903&data=%7B%22a19f1434f9a578325eb9799c9961b5465d4e6e40%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22branch%22%3A+%22default%22%2C+%22commit%22%3A+%22a19f1434f9a578325eb9799c9961b5465d4e6e40%22%2C+%22parents%22%3A+%5B%2224ffd6bca53a1e05369ed5b8834587c2b2b364da%22%5D%2C+%22time%22%3A+0%7D%7D&name=local%3Acommits&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-xss-protection": [ + "1; mode=block" + ], + "cache-control": [ + "no-store" + ], + "content-type": [ + "application/json" + ], + "date": [ + "Sun, 05 May 2019 13:31:31 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], + "x-content-type-options": [ + "nosniff" + ], + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" + ] + }, + "body": { + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" + } } } - ], - "version": 1 -} \ No newline at end of file + ] +} diff --git a/tests/phabricator/phabsend-update-alpha-create-beta.json b/tests/phabricator/phabsend-update-alpha-create-beta.json --- a/tests/phabricator/phabsend-update-alpha-create-beta.json +++ b/tests/phabricator/phabsend-update-alpha-create-beta.json @@ -1,1025 +1,1025 @@ { + "version": 1, "interactions": [ { "request": { - "method": "POST", - "body": "api.token=cli-hahayouwish&revisionIDs%5B0%5D=6054", - "uri": "https://phab.mercurial-scm.org//api/differential.querydiffs", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "66" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "66" ] - } + }, + "body": "api.token=cli-hahayouwish&revisionIDs%5B0%5D=1190", + "uri": "https://phab.mercurial-scm.org//api/differential.querydiffs", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":{\"14303\":{\"id\":\"14303\",\"revisionID\":\"6054\",\"dateCreated\":\"1551571944\",\"dateModified\":\"1551571947\",\"sourceControlBaseRevision\":null,\"sourceControlPath\":null,\"sourceControlSystem\":null,\"branch\":null,\"bookmark\":null,\"creationMethod\":\"web\",\"description\":null,\"unitStatus\":\"4\",\"lintStatus\":\"4\",\"changes\":[{\"id\":\"32287\",\"metadata\":{\"line:first\":1},\"oldPath\":null,\"currentPath\":\"alpha\",\"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\":\"+alpha\\n\"}]}],\"properties\":{\"hg:meta\":{\"user\":\"test\",\"parent\":\"0000000000000000000000000000000000000000\",\"node\":\"cb03845d6dd98c72bec766c7ed08c693cc49817a\",\"date\":\"0 0\"},\"local:commits\":{\"cb03845d6dd98c72bec766c7ed08c693cc49817a\":{\"author\":\"test\",\"authorEmail\":\"test\",\"time\":0}}},\"authorName\":\"test\",\"authorEmail\":\"test\"}},\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:30 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:08 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "1132" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Fnf3xdxgvvgky277foc7s2p6xrgtsvn4bzmayrbmb; expires=Fri, 01-Mar-2024 00:12:30 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":{\"1899\":{\"id\":\"1899\",\"revisionID\":\"1190\",\"dateCreated\":\"1557063061\",\"dateModified\":\"1557063064\",\"sourceControlBaseRevision\":null,\"sourceControlPath\":null,\"sourceControlSystem\":null,\"branch\":null,\"bookmark\":null,\"creationMethod\":\"web\",\"description\":null,\"unitStatus\":\"4\",\"lintStatus\":\"4\",\"changes\":[{\"id\":\"4355\",\"metadata\":{\"line:first\":1,\"hash.effect\":\"g6dr_XSxA9EP\"},\"oldPath\":null,\"currentPath\":\"alpha\",\"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\":\"+alpha\\n\"}]}],\"properties\":{\"hg:meta\":{\"branch\":\"default\",\"date\":\"0 0\",\"node\":\"53fe3a1e0f42670a88ad845247b2ed4d5e645434\",\"parent\":\"0000000000000000000000000000000000000000\",\"user\":\"test\"},\"local:commits\":{\"53fe3a1e0f42670a88ad845247b2ed4d5e645434\":{\"author\":\"test\",\"authorEmail\":\"test\",\"branch\":\"default\",\"time\":0}}},\"authorName\":\"test\",\"authorEmail\":\"test\"}},\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "constraints%5Bcallsigns%5D%5B0%5D=HG&api.token=cli-hahayouwish", - "uri": "https://phab.mercurial-scm.org//api/diffusion.repository.search", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "93" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "79" ] - } + }, + "body": "api.token=cli-hahayouwish&constraints%5Bcallsigns%5D%5B0%5D=HG", + "uri": "https://phab.mercurial-scm.org//api/diffusion.repository.search", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":{\"data\":[{\"id\":2,\"type\":\"REPO\",\"phid\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"fields\":{\"name\":\"Mercurial\",\"vcs\":\"hg\",\"callsign\":\"HG\",\"shortName\":null,\"status\":\"active\",\"isImporting\":false,\"spacePHID\":null,\"dateCreated\":1498761653,\"dateModified\":1500403184,\"policy\":{\"view\":\"public\",\"edit\":\"admin\",\"diffusion.push\":\"users\"}},\"attachments\":{}}],\"maps\":{},\"query\":{\"queryKey\":null},\"cursor\":{\"limit\":100,\"after\":null,\"before\":null,\"order\":null}},\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:31 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:09 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "549" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Fmlq7cl6pakmia2uecfcevwhdl3hyqe6rdb2y7usm; expires=Fri, 01-Mar-2024 00:12:31 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":{\"data\":[{\"id\":10,\"type\":\"REPO\",\"phid\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"fields\":{\"name\":\"Mercurial\",\"vcs\":\"hg\",\"callsign\":\"HG\",\"shortName\":\"Mercurial\",\"status\":\"active\",\"isImporting\":false,\"almanacServicePHID\":null,\"spacePHID\":null,\"dateCreated\":1507817156,\"dateModified\":1529613276,\"policy\":{\"view\":\"public\",\"edit\":\"admin\",\"diffusion.push\":\"users\"}},\"attachments\":{}}],\"maps\":{},\"query\":{\"queryKey\":null},\"cursor\":{\"limit\":100,\"after\":null,\"before\":null,\"order\":null}},\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "repositoryPHID=PHID-REPO-bvunnehri4u2isyr7bc3&api.token=cli-hahayouwish&diff=diff+--git+a%2Falpha+b%2Falpha%0Anew+file+mode+100644%0A---+%2Fdev%2Fnull%0A%2B%2B%2B+b%2Falpha%0A%40%40+-0%2C0+%2B1%2C2+%40%40%0A%2Balpha%0A%2Bmore%0A", - "uri": "https://phab.mercurial-scm.org//api/differential.createrawdiff", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "245" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "245" ] - } + }, + "body": "api.token=cli-hahayouwish&diff=diff+--git+a%2Falpha+b%2Falpha%0Anew+file+mode+100644%0A---+%2Fdev%2Fnull%0A%2B%2B%2B+b%2Falpha%0A%40%40+-0%2C0+%2B1%2C2+%40%40%0A%2Balpha%0A%2Bmore%0A&repositoryPHID=PHID-REPO-bvunnehri4u2isyr7bc3", + "uri": "https://phab.mercurial-scm.org//api/differential.createrawdiff", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":{\"id\":14304,\"phid\":\"PHID-DIFF-3wv2fwmzp27uamb66xxg\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/differential\\/diff\\/14304\\/\"},\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:32 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:09 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "172" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Fptjtujvqlcwhzs4yhneogb323aqessc5axlu4rif; expires=Fri, 01-Mar-2024 00:12:32 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":{\"id\":1900,\"phid\":\"PHID-DIFF-gra4b3ivsgebktbeoxxx\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/differential\\/diff\\/1900\\/\"},\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "diff_id=14304&data=%7B%22user%22%3A+%22test%22%2C+%22parent%22%3A+%220000000000000000000000000000000000000000%22%2C+%22node%22%3A+%22939d862f03181a366fea64a540baf0bb33f85d92%22%2C+%22date%22%3A+%220+0%22%7D&api.token=cli-hahayouwish&name=hg%3Ameta", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "296" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "264" ] - } + }, + "body": "diff_id=1900&data=%7B%22branch%22%3A+%22default%22%2C+%22date%22%3A+%220+0%22%2C+%22node%22%3A+%22d940d39fb603f29ea5df4b7c15f315fe6ff4e346%22%2C+%22parent%22%3A+%220000000000000000000000000000000000000000%22%2C+%22user%22%3A+%22test%22%7D&name=hg%3Ameta&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:32 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:10 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Feho2462w6mulsjeoz3e4rwgf37aekqwgpqmarn2f; expires=Fri, 01-Mar-2024 00:12:32 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "diff_id=14304&data=%7B%22939d862f03181a366fea64a540baf0bb33f85d92%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22time%22%3A+0.0%7D%7D&api.token=cli-hahayouwish&name=local%3Acommits", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "257" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "227" ] - } + }, + "body": "diff_id=1900&data=%7B%22d940d39fb603f29ea5df4b7c15f315fe6ff4e346%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22branch%22%3A+%22default%22%2C+%22commit%22%3A+%22d940d39fb603f29ea5df4b7c15f315fe6ff4e346%22%2C+%22parents%22%3A+%5B%220000000000000000000000000000000000000000%22%5D%2C+%22time%22%3A+0%7D%7D&name=local%3Acommits&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:33 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:11 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2F4ca3h5qhtwgn55t3zznczixyt2st4tm44t23aceg; expires=Fri, 01-Mar-2024 00:12:33 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "api.token=cli-hahayouwish&corpus=create+alpha+for+phabricator+test+%E2%82%AC%0A%0ADifferential+Revision%3A+https%3A%2F%2Fphab.mercurial-scm.org%2FD6054", - "uri": "https://phab.mercurial-scm.org//api/differential.parsecommitmessage", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "173" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "168" ] - } + }, + "body": "api.token=cli-hahayouwish&corpus=create+alpha+for+phabricator+test+%E2%82%AC%0A%0ADifferential+Revision%3A+https%3A%2F%2Fphab.mercurial-scm.org%2FD1190", + "uri": "https://phab.mercurial-scm.org//api/differential.parsecommitmessage", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":{\"errors\":[],\"fields\":{\"title\":\"create alpha for phabricator test \\u20ac\",\"revisionID\":6054},\"revisionIDFieldInfo\":{\"value\":6054,\"validDomain\":\"https:\\/\\/phab.mercurial-scm.org\"}},\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:34 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:11 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "316" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2F7pvtbpw2waiblbsbydew3vfpulqnccf4647ymipq; expires=Fri, 01-Mar-2024 00:12:34 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":{\"errors\":[],\"fields\":{\"title\":\"create alpha for phabricator test \\u20ac\",\"revisionID\":1190},\"revisionIDFieldInfo\":{\"value\":1190,\"validDomain\":\"https:\\/\\/phab.mercurial-scm.org\"},\"transactions\":[{\"type\":\"title\",\"value\":\"create alpha for phabricator test \\u20ac\"}]},\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "api.token=cli-hahayouwish&transactions%5B0%5D%5Btype%5D=update&transactions%5B0%5D%5Bvalue%5D=PHID-DIFF-3wv2fwmzp27uamb66xxg&transactions%5B1%5D%5Btype%5D=title&transactions%5B1%5D%5Bvalue%5D=create+alpha+for+phabricator+test+%E2%82%AC&objectIdentifier=6054", - "uri": "https://phab.mercurial-scm.org//api/differential.revision.edit", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "274" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "274" ] - } + }, + "body": "api.token=cli-hahayouwish&objectIdentifier=1190&transactions%5B0%5D%5Btype%5D=update&transactions%5B0%5D%5Bvalue%5D=PHID-DIFF-gra4b3ivsgebktbeoxxx&transactions%5B1%5D%5Btype%5D=title&transactions%5B1%5D%5Bvalue%5D=create+alpha+for+phabricator+test+%E2%82%AC", + "uri": "https://phab.mercurial-scm.org//api/differential.revision.edit", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":{\"object\":{\"id\":\"6054\",\"phid\":\"PHID-DREV-6pczsbtdpqjc2nskmxwy\"},\"transactions\":[{\"phid\":\"PHID-XACT-DREV-mc2gfyoyhkfz7dy\"}]},\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:34 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:12 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "168" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Fhmyuw3lg6h4joaswqnfcmnzdkp6p2qxotsvahb7l; expires=Fri, 01-Mar-2024 00:12:34 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":{\"object\":{\"id\":1190,\"phid\":\"PHID-DREV-kikesmfxhzpfaxbzgj3l\"},\"transactions\":[{\"phid\":\"PHID-XACT-DREV-tk6ciodgzlwo2v6\"}]},\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "repositoryPHID=PHID-REPO-bvunnehri4u2isyr7bc3&api.token=cli-hahayouwish&diff=diff+--git+a%2Fbeta+b%2Fbeta%0Anew+file+mode+100644%0A---+%2Fdev%2Fnull%0A%2B%2B%2B+b%2Fbeta%0A%40%40+-0%2C0+%2B1%2C1+%40%40%0A%2Bbeta%0A", - "uri": "https://phab.mercurial-scm.org//api/differential.createrawdiff", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "231" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "231" ] - } + }, + "body": "api.token=cli-hahayouwish&diff=diff+--git+a%2Fbeta+b%2Fbeta%0Anew+file+mode+100644%0A---+%2Fdev%2Fnull%0A%2B%2B%2B+b%2Fbeta%0A%40%40+-0%2C0+%2B1%2C1+%40%40%0A%2Bbeta%0A&repositoryPHID=PHID-REPO-bvunnehri4u2isyr7bc3", + "uri": "https://phab.mercurial-scm.org//api/differential.createrawdiff", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":{\"id\":14305,\"phid\":\"PHID-DIFF-pofynzhmmqm2czm33teg\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/differential\\/diff\\/14305\\/\"},\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:35 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:13 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "172" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2F2xpzt6bryn7n3gug3ll7iu2gfqyy4zss5d7nolew; expires=Fri, 01-Mar-2024 00:12:35 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":{\"id\":1901,\"phid\":\"PHID-DIFF-uhbyhoejzbniwwzj2q5c\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/differential\\/diff\\/1901\\/\"},\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "diff_id=14305&data=%7B%22user%22%3A+%22test%22%2C+%22parent%22%3A+%22939d862f03181a366fea64a540baf0bb33f85d92%22%2C+%22node%22%3A+%22f55f947ed0f8ad80a04b7e87a0bf9febda2070b1%22%2C+%22date%22%3A+%220+0%22%7D&api.token=cli-hahayouwish&name=hg%3Ameta", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "296" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "264" ] - } + }, + "body": "diff_id=1901&data=%7B%22branch%22%3A+%22default%22%2C+%22date%22%3A+%220+0%22%2C+%22node%22%3A+%224b2486dfc8c7b238e70f8b022f9e09a0ea220415%22%2C+%22parent%22%3A+%22d940d39fb603f29ea5df4b7c15f315fe6ff4e346%22%2C+%22user%22%3A+%22test%22%7D&name=hg%3Ameta&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:36 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:14 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Fygzbpe74xh6shrejkd3tj32t4gaqnvumy63iudrd; expires=Fri, 01-Mar-2024 00:12:36 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "diff_id=14305&data=%7B%22f55f947ed0f8ad80a04b7e87a0bf9febda2070b1%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22time%22%3A+0.0%7D%7D&api.token=cli-hahayouwish&name=local%3Acommits", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "257" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "227" ] - } + }, + "body": "diff_id=1901&data=%7B%224b2486dfc8c7b238e70f8b022f9e09a0ea220415%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22branch%22%3A+%22default%22%2C+%22commit%22%3A+%224b2486dfc8c7b238e70f8b022f9e09a0ea220415%22%2C+%22parents%22%3A+%5B%22d940d39fb603f29ea5df4b7c15f315fe6ff4e346%22%5D%2C+%22time%22%3A+0%7D%7D&name=local%3Acommits&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:37 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:15 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Fgw67yfcsx7vvxkymeac52ca5is4jkxjwqqkhayco; expires=Fri, 01-Mar-2024 00:12:37 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "api.token=cli-hahayouwish&corpus=create+beta+for+phabricator+test", - "uri": "https://phab.mercurial-scm.org//api/differential.parsecommitmessage", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "82" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "82" ] - } + }, + "body": "api.token=cli-hahayouwish&corpus=create+beta+for+phabricator+test", + "uri": "https://phab.mercurial-scm.org//api/differential.parsecommitmessage", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":{\"errors\":[],\"fields\":{\"title\":\"create beta for phabricator test\"},\"revisionIDFieldInfo\":{\"value\":null,\"validDomain\":\"https:\\/\\/phab.mercurial-scm.org\"}},\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:37 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:15 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "282" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Fyt5ejs6pgvjdxzms7geaxup63jpqkisngu3cprk6; expires=Fri, 01-Mar-2024 00:12:37 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":{\"errors\":[],\"fields\":{\"title\":\"create beta for phabricator test\"},\"revisionIDFieldInfo\":{\"value\":null,\"validDomain\":\"https:\\/\\/phab.mercurial-scm.org\"},\"transactions\":[{\"type\":\"title\",\"value\":\"create beta for phabricator test\"}]},\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "transactions%5B0%5D%5Btype%5D=update&transactions%5B0%5D%5Bvalue%5D=PHID-DIFF-pofynzhmmqm2czm33teg&transactions%5B1%5D%5Btype%5D=summary&transactions%5B1%5D%5Bvalue%5D=Depends+on+D6054&transactions%5B2%5D%5Btype%5D=summary&transactions%5B2%5D%5Bvalue%5D=+&transactions%5B3%5D%5Btype%5D=title&transactions%5B3%5D%5Bvalue%5D=create+beta+for+phabricator+test&api.token=cli-hahayouwish", - "uri": "https://phab.mercurial-scm.org//api/differential.revision.edit", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "398" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "398" ] - } + }, + "body": "api.token=cli-hahayouwish&transactions%5B0%5D%5Btype%5D=update&transactions%5B0%5D%5Bvalue%5D=PHID-DIFF-uhbyhoejzbniwwzj2q5c&transactions%5B1%5D%5Btype%5D=summary&transactions%5B1%5D%5Bvalue%5D=Depends+on+D1190&transactions%5B2%5D%5Btype%5D=summary&transactions%5B2%5D%5Bvalue%5D=+&transactions%5B3%5D%5Btype%5D=title&transactions%5B3%5D%5Bvalue%5D=create+beta+for+phabricator+test", + "uri": "https://phab.mercurial-scm.org//api/differential.revision.edit", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":{\"object\":{\"id\":6055,\"phid\":\"PHID-DREV-k2hin2iytzuvu3j5icm3\"},\"transactions\":[{\"phid\":\"PHID-XACT-DREV-3xjvwemev7dqsj3\"},{\"phid\":\"PHID-XACT-DREV-giypqlavgemr56i\"},{\"phid\":\"PHID-XACT-DREV-tcfqd4aj6rxtxzz\"},{\"phid\":\"PHID-XACT-DREV-2timgnudaxeln7a\"},{\"phid\":\"PHID-XACT-DREV-vb6564lrsxpsw4l\"},{\"phid\":\"PHID-XACT-DREV-maym4xi2tdhysvo\"},{\"phid\":\"PHID-XACT-DREV-bna5heyckxkk5ke\"},{\"phid\":\"PHID-XACT-DREV-b2eig3stbdic7k7\"}]},\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:38 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:17 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "420" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Fgqyrj3op7rar26t6crqlt6rpdsxcefnrofqkw5rt; expires=Fri, 01-Mar-2024 00:12:38 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":{\"object\":{\"id\":1191,\"phid\":\"PHID-DREV-uuyrww2k3weorn2jwcaz\"},\"transactions\":[{\"phid\":\"PHID-XACT-DREV-erc62kc5d5t53dw\"},{\"phid\":\"PHID-XACT-DREV-56jxoj2nev5we3e\"},{\"phid\":\"PHID-XACT-DREV-cajnfsuigdcmfpn\"},{\"phid\":\"PHID-XACT-DREV-expntfzlv44va6h\"},{\"phid\":\"PHID-XACT-DREV-hzrgd55fpfjcan7\"},{\"phid\":\"PHID-XACT-DREV-v4baqr7c5ydtltr\"},{\"phid\":\"PHID-XACT-DREV-ge6dwwrvrkluq2q\"}]},\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "api.token=cli-hahayouwish&ids%5B0%5D=6054&ids%5B1%5D=6055", - "uri": "https://phab.mercurial-scm.org//api/differential.query", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "74" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "74" ] - } + }, + "body": "ids%5B0%5D=1190&ids%5B1%5D=1191&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.query", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":[{\"id\":\"6055\",\"phid\":\"PHID-DREV-k2hin2iytzuvu3j5icm3\",\"title\":\"create beta for phabricator test\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/D6055\",\"dateCreated\":\"1551571958\",\"dateModified\":\"1551571958\",\"authorPHID\":\"PHID-USER-5iy6mkoveguhm2zthvww\",\"status\":\"0\",\"statusName\":\"Needs Review\",\"properties\":[],\"branch\":null,\"summary\":\" \",\"testPlan\":\"\",\"lineCount\":\"1\",\"activeDiffPHID\":\"PHID-DIFF-pofynzhmmqm2czm33teg\",\"diffs\":[\"14305\"],\"commits\":[],\"reviewers\":{\"PHID-PROJ-3dvcxzznrjru2xmmses3\":\"PHID-PROJ-3dvcxzznrjru2xmmses3\"},\"ccs\":[\"PHID-USER-q42dn7cc3donqriafhjx\"],\"hashes\":[],\"auxiliary\":{\"phabricator:projects\":[],\"phabricator:depends-on\":[\"PHID-DREV-6pczsbtdpqjc2nskmxwy\"]},\"repositoryPHID\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"sourcePath\":null},{\"id\":\"6054\",\"phid\":\"PHID-DREV-6pczsbtdpqjc2nskmxwy\",\"title\":\"create alpha for phabricator test \\u20ac\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/D6054\",\"dateCreated\":\"1551571947\",\"dateModified\":\"1551571958\",\"authorPHID\":\"PHID-USER-5iy6mkoveguhm2zthvww\",\"status\":\"0\",\"statusName\":\"Needs Review\",\"properties\":[],\"branch\":null,\"summary\":\"\",\"testPlan\":\"\",\"lineCount\":\"2\",\"activeDiffPHID\":\"PHID-DIFF-3wv2fwmzp27uamb66xxg\",\"diffs\":[\"14304\",\"14303\"],\"commits\":[],\"reviewers\":{\"PHID-PROJ-3dvcxzznrjru2xmmses3\":\"PHID-PROJ-3dvcxzznrjru2xmmses3\"},\"ccs\":[\"PHID-USER-q42dn7cc3donqriafhjx\"],\"hashes\":[],\"auxiliary\":{\"phabricator:projects\":[],\"phabricator:depends-on\":[]},\"repositoryPHID\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"sourcePath\":null}],\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:39 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:17 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "1514" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2F5wxg6sdf2mby5iljd5e5qpgoex6uefo5pgltav7k; expires=Fri, 01-Mar-2024 00:12:39 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":[{\"id\":\"1191\",\"phid\":\"PHID-DREV-uuyrww2k3weorn2jwcaz\",\"title\":\"create beta for phabricator test\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/D1191\",\"dateCreated\":\"1557063076\",\"dateModified\":\"1557063077\",\"authorPHID\":\"PHID-USER-qmzis76vb2yh3ogldu6r\",\"status\":\"0\",\"statusName\":\"Draft\",\"properties\":{\"draft.broadcast\":false,\"lines.added\":1,\"lines.removed\":0},\"branch\":null,\"summary\":\" \",\"testPlan\":\"\",\"lineCount\":\"1\",\"activeDiffPHID\":\"PHID-DIFF-uhbyhoejzbniwwzj2q5c\",\"diffs\":[\"1901\"],\"commits\":[],\"reviewers\":[],\"ccs\":[],\"hashes\":[],\"auxiliary\":{\"bugzilla.bug-id\":null,\"phabricator:projects\":[\"PHID-PROJ-f2a3wl5wxtqdtfgdjqzk\"],\"phabricator:depends-on\":[\"PHID-DREV-kikesmfxhzpfaxbzgj3l\"]},\"repositoryPHID\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"sourcePath\":null},{\"id\":\"1190\",\"phid\":\"PHID-DREV-kikesmfxhzpfaxbzgj3l\",\"title\":\"create alpha for phabricator test \\u20ac\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/D1190\",\"dateCreated\":\"1557063064\",\"dateModified\":\"1557063076\",\"authorPHID\":\"PHID-USER-qmzis76vb2yh3ogldu6r\",\"status\":\"0\",\"statusName\":\"Needs Review\",\"properties\":{\"draft.broadcast\":true,\"lines.added\":2,\"lines.removed\":0},\"branch\":null,\"summary\":\"\",\"testPlan\":\"\",\"lineCount\":\"2\",\"activeDiffPHID\":\"PHID-DIFF-gra4b3ivsgebktbeoxxx\",\"diffs\":[\"1900\",\"1899\"],\"commits\":[],\"reviewers\":[],\"ccs\":[],\"hashes\":[],\"auxiliary\":{\"bugzilla.bug-id\":null,\"phabricator:projects\":[],\"phabricator:depends-on\":[]},\"repositoryPHID\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"sourcePath\":null}],\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "diff_id=14305&data=%7B%22user%22%3A+%22test%22%2C+%22parent%22%3A+%22939d862f03181a366fea64a540baf0bb33f85d92%22%2C+%22node%22%3A+%229c64e1fc33e1b9a70eb60643fe96a4d5badad9dc%22%2C+%22date%22%3A+%220+0%22%7D&api.token=cli-hahayouwish&name=hg%3Ameta", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "296" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "264" ] - } + }, + "body": "diff_id=1901&data=%7B%22branch%22%3A+%22default%22%2C+%22date%22%3A+%220+0%22%2C+%22node%22%3A+%222837deb84f4ab1315c1197b8aef10c620465e352%22%2C+%22parent%22%3A+%22d940d39fb603f29ea5df4b7c15f315fe6ff4e346%22%2C+%22user%22%3A+%22test%22%7D&name=hg%3Ameta&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:40 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:18 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2F4c7iamnsn57y6qpccmbesf4ooflmkqvt4m6udawl; expires=Fri, 01-Mar-2024 00:12:40 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } } }, { "request": { - "method": "POST", - "body": "diff_id=14305&data=%7B%229c64e1fc33e1b9a70eb60643fe96a4d5badad9dc%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22time%22%3A+0.0%7D%7D&api.token=cli-hahayouwish&name=local%3Acommits", - "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", "headers": { + "user-agent": [ + "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)" + ], + "content-length": [ + "257" + ], "content-type": [ "application/x-www-form-urlencoded" ], "accept": [ "application/mercurial-0.1" ], - "user-agent": [ - "mercurial/proto-1.0 (Mercurial 4.9+477-7c86ec0ca5c5+20190303)" - ], "host": [ "phab.mercurial-scm.org" - ], - "content-length": [ - "227" ] - } + }, + "body": "diff_id=1901&data=%7B%222837deb84f4ab1315c1197b8aef10c620465e352%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22branch%22%3A+%22default%22%2C+%22commit%22%3A+%222837deb84f4ab1315c1197b8aef10c620465e352%22%2C+%22parents%22%3A+%5B%22d940d39fb603f29ea5df4b7c15f315fe6ff4e346%22%5D%2C+%22time%22%3A+0%7D%7D&name=local%3Acommits&api.token=cli-hahayouwish", + "uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty", + "method": "POST" }, "response": { "status": { "code": 200, "message": "OK" }, - "body": { - "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" - }, "headers": { - "expires": [ - "Sat, 01 Jan 2000 00:00:00 GMT" - ], "x-xss-protection": [ "1; mode=block" ], - "transfer-encoding": [ - "chunked" - ], - "date": [ - "Sun, 03 Mar 2019 00:12:40 GMT" - ], - "x-frame-options": [ - "Deny" - ], "cache-control": [ "no-store" ], "content-type": [ "application/json" ], + "date": [ + "Sun, 05 May 2019 13:31:19 GMT" + ], + "connection": [ + "keep-alive" + ], + "strict-transport-security": [ + "max-age=31536000; includeSubdomains; preload" + ], + "vary": [ + "Accept-Encoding" + ], + "x-frame-options": [ + "Deny" + ], + "content-length": [ + "51" + ], "x-content-type-options": [ "nosniff" ], - "server": [ - "Apache/2.4.10 (Debian)" - ], - "set-cookie": [ - "phsid=A%2Ftdudqohojcq4hyc7gl4kthzkhuq3nmcxgnunpbjm; expires=Fri, 01-Mar-2024 00:12:40 GMT; Max-Age=157680000; path=/; domain=phab.mercurial-scm.org; secure; httponly" - ], - "strict-transport-security": [ - "max-age=0; includeSubdomains; preload" + "expires": [ + "Sat, 01 Jan 2000 00:00:00 GMT" ] + }, + "body": { + "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}" } } } - ], - "version": 1 + ] } diff --git a/tests/test-phabricator.t b/tests/test-phabricator.t --- a/tests/test-phabricator.t +++ b/tests/test-phabricator.t @@ -53,18 +53,18 @@ Create a differential diff: $ hg ci --addremove -m 'create alpha for phabricator test €' adding alpha $ hg phabsend -r . --test-vcr "$VCR/phabsend-create-alpha.json" - D6054 - created - d386117f30e6: create alpha for phabricator test \xe2\x82\xac (esc) + D1190 - created - d386117f30e6: create alpha for phabricator test \xe2\x82\xac (esc) saved backup bundle to $TESTTMP/repo/.hg/strip-backup/d386117f30e6-24ffe649-phabsend.hg $ echo more >> alpha $ HGEDITOR=true hg ci --amend - saved backup bundle to $TESTTMP/repo/.hg/strip-backup/cb03845d6dd9-870f61a6-amend.hg + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/a86ed7d85e86-b7a54f3b-amend.hg $ echo beta > beta $ hg ci --addremove -m 'create beta for phabricator test' adding beta $ hg phabsend -r ".^::" --test-vcr "$VCR/phabsend-update-alpha-create-beta.json" - D6054 - updated - 939d862f0318: create alpha for phabricator test \xe2\x82\xac (esc) - D6055 - created - f55f947ed0f8: create beta for phabricator test - saved backup bundle to $TESTTMP/repo/.hg/strip-backup/f55f947ed0f8-0d1e502e-phabsend.hg + D1190 - updated - d940d39fb603: create alpha for phabricator test \xe2\x82\xac (esc) + D1191 - created - 4b2486dfc8c7: create beta for phabricator test + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/4b2486dfc8c7-d90584fa-phabsend.hg $ unset HGENCODING The amend won't explode after posting a public commit. The local tag is left @@ -76,13 +76,13 @@ behind to identify it. $ echo 'draft change' > alpha $ hg ci -m 'create draft change for phabricator testing' $ hg phabsend --amend -r '.^::' --test-vcr "$VCR/phabsend-create-public.json" - D5544 - created - a56e5ebd77e6: create public change for phabricator testing - D5545 - created - 6a0ade3e3ec2: create draft change for phabricator testing - warning: not updating public commit 2:a56e5ebd77e6 - saved backup bundle to $TESTTMP/repo/.hg/strip-backup/6a0ade3e3ec2-aca7d23c-phabsend.hg + D1192 - created - 24ffd6bca53a: create public change for phabricator testing + D1193 - created - ac331633be79: create draft change for phabricator testing + warning: not updating public commit 2:24ffd6bca53a + saved backup bundle to $TESTTMP/repo/.hg/strip-backup/ac331633be79-719b961c-phabsend.hg $ hg tags -v - tip 3:90532860b5e1 - D5544 2:a56e5ebd77e6 local + tip 3:a19f1434f9a5 + D1192 2:24ffd6bca53a local $ hg debugcallconduit user.search --test-vcr "$VCR/phab-conduit.json" < { @@ -107,15 +107,15 @@ behind to identify it. Template keywords $ hg log -T'{rev} {phabreview|json}\n' - 3 {"id": "D5545", "url": "https://phab.mercurial-scm.org/D5545"} - 2 {"id": "D5544", "url": "https://phab.mercurial-scm.org/D5544"} - 1 {"id": "D6055", "url": "https://phab.mercurial-scm.org/D6055"} - 0 {"id": "D6054", "url": "https://phab.mercurial-scm.org/D6054"} + 3 {"id": "D1193", "url": "https://phab.mercurial-scm.org/D1193"} + 2 {"id": "D1192", "url": "https://phab.mercurial-scm.org/D1192"} + 1 {"id": "D1191", "url": "https://phab.mercurial-scm.org/D1191"} + 0 {"id": "D1190", "url": "https://phab.mercurial-scm.org/D1190"} $ hg log -T'{rev} {if(phabreview, "{phabreview.url} {phabreview.id}")}\n' - 3 https://phab.mercurial-scm.org/D5545 D5545 - 2 https://phab.mercurial-scm.org/D5544 D5544 - 1 https://phab.mercurial-scm.org/D6055 D6055 - 0 https://phab.mercurial-scm.org/D6054 D6054 + 3 https://phab.mercurial-scm.org/D1193 D1193 + 2 https://phab.mercurial-scm.org/D1192 D1192 + 1 https://phab.mercurial-scm.org/D1191 D1191 + 0 https://phab.mercurial-scm.org/D1190 D1190 $ cd ..