Page MenuHomePhabricator

Replace `hg locate` with `hg files` if `hg` is 3.2 or newer
Closed, ResolvedPublic

Description

In T4387, we moved some hg grep calls to hg locate. However, hg locate is deprecated as of Merucrial 3.2 (2014-11-01, roughly a month after we moved to use it).

The replacement is hg files, which is new as of 3.2.

So we need to:

  • Use hg locate on hg < 3.2.
  • Use hg files on hg >= 3.2
  • (hg files may have slightly different syntax?)

Event Timeline

epriestley raised the priority of this task from to Normal.
epriestley updated the task description. (Show Details)
epriestley added projects: Mercurial, Diffusion.
epriestley added a subscriber: epriestley.
epriestley lowered the priority of this task from Normal to Low.Feb 25 2015, 4:15 PM

Specifically, this isn't causing any problems yet (hg locate still works in modern hg at the time of writing), but at some point hg locate is presumably going to vanish and then we will have a problem.