{"record":{"id":"95217f73d12a1c1b","repo":"phacility/phabricator","slug":"unknown-mercurial-key-namespace-s-with-key-s","errorCode":null,"errorMessage":"Unknown Mercurial key namespace '%s', with key '%s' (%s -> %s). Rejecting push.","messagePattern":"Unknown Mercurial key namespace '(.+?)', with key '(.+?)' \\((.+?) -> (.+?)\\)\\. Rejecting push\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/engine/DiffusionCommitHookEngine.php","lineNumber":985,"sourceCode":"      // just ignore these, as they don't seem to represent anything\n      // interesting.\n      return array();\n    }\n\n    $key_name = getenv('HG_KEY');\n\n    $key_old = getenv('HG_OLD');\n    if (!strlen($key_old)) {\n      $key_old = null;\n    }\n\n    $key_new = getenv('HG_NEW');\n    if (!strlen($key_new)) {\n      $key_new = null;\n    }\n\n    if ($key_namespace !== 'bookmarks') {\n      throw new Exception(\n        pht(\n          \"Unknown Mercurial key namespace '%s', with key '%s' (%s -> %s). \".\n          \"Rejecting push.\",\n          $key_namespace,\n          $key_name,\n          coalesce($key_old, pht('null')),\n          coalesce($key_new, pht('null'))));\n    }\n\n    if ($key_old === $key_new) {\n      // We get a callback when the bookmark doesn't change. Just ignore this,\n      // as it's a no-op.\n      return array();\n    }\n\n    $ref_flags = 0;\n    $merge_base = null;\n    if ($key_old === null) {","sourceCodeStart":967,"sourceCodeEnd":1003,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/engine/DiffusionCommitHookEngine.php#L967-L1003","documentation":"Error \"Unknown Mercurial key namespace '%s', with key '%s' (%s -> %s). Rejecting push.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/engine/DiffusionCommitHookEngine.php:985 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}