Page MenuHomePhabricator

Correct a parameter order swap in "diffusion.historyquery" for Mercurial
ClosedPublic

Authored by epriestley on Sep 5 2021, 12:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 11, 12:23 PM
Unknown Object (File)
Jun 19 2026, 6:51 PM
Unknown Object (File)
Jun 19 2026, 6:51 PM
Unknown Object (File)
Jun 13 2026, 7:50 PM
Unknown Object (File)
Jun 10 2026, 8:52 AM
Unknown Object (File)
Jun 1 2026, 7:04 PM
Unknown Object (File)
Apr 17 2026, 6:10 PM
Unknown Object (File)
Mar 6 2026, 9:03 AM
Subscribers
None

Details

Summary

Ref T13666. See T13666#256253. The order of these parameters is incorrect (introduced in D18817, which was trying to turn the revset "A or B" into "B or A"), but when "commit" is the single head of "branch" (which is common), the revset is functionally equivalent.

Test Plan

An easy reproduction case is to make a "diffusion.historyquery" call manually against a Mercurial repository, with a valid "branch" name and some non-head "commit".

  • Before patch, queried "head^" (by commit hash, not by symbol) of "default" and got "head" too (wrong).
  • Applied patch to secure001.phacility.net (my local hg web environment is iffy right now).
  • Re-ran the same query, saw "head^" as the first result rather than "head" (all hashes rather than symbols, as above), which is desired.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable