requires:hash,regexp: /\h{12,}/,type: String,desc: 'Censor file from specified hash of length >= 12'
requires:file,type: String,desc: 'File to be censored'
optional:tombstone,type: String,desc: 'Replacement tombstone data. Must be UTF8 and length + 15 (in bytes) must be <= of that of the original data.'
optional:file_is_base64,type: Boolean,desc: 'If `file` is base64 encoded. Otherwise is interpreted as UTF8. This is useful if the filename is not valid UTF8.'
render_api_error!("'hg censor' command failed. Please check the file name at the given changeset, and make sure that the tombstone size (default empty) is smaller or equal to the file size - 15 (in bytes). More details may be available in server logs",400)