repair: extract a helper for generating all manifest revlogs
We'll need to walk the manifest revlogs also to figure out which
manifests have linkrevs out of order (for fixing the bug shown in the
previous patch).
By the way, perhaps it would be more efficient in many cases to find
only the relevant directory manifest revlogs based on the files
instead of walking the entire store, but that can be changed later.
Differential Revision: https://phab.mercurial-scm.org/D6794
CC := gcc
CFLAGS := -g -O2 -Wall -Werror
prefix ?= /usr/bin
hgsh: hgsh.o
$(CC) -o $@ $<
install: hgsh
install -m755 hgsh $(prefix)
clean:
rm -f *.o hgsh