test-hgext-repogenerator: use treestate

Summary: The test change is caused by treestate having side effect on RNG.

Reviewed By: DurhamG

Differential Revision: D8907647

fbshipit-source-id: 71f4989a137454dd8717a734ee1905aa5b6a42de
This commit is contained in:
Jun Wu 2018-07-27 17:58:20 -07:00 committed by Facebook Github Bot
parent f237fcebc4
commit 5ee658c927

View File

@ -1,3 +1,4 @@
$ setconfig format.dirstate=2
$ newrepo
$ setconfig repogenerator.filenamedircount=2
$ setconfig repogenerator.filenameleaflength=1
@ -6,18 +7,18 @@
starting commit is: -1 (goal is 2)
created *, * sec elapsed (* commits/sec, * per hour, * per day) (glob)
$ hg log -G -r ::tip
o changeset: 2:2f0eabc6bc3d
o changeset: 2:26c418a67612
| tag: tip
| user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: memory commit
|
o changeset: 1:272777df88de
o changeset: 1:331925392347
| user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: memory commit
|
o changeset: 0:8023a25712fb
o changeset: 0:af3f7799efa3
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: memory commit
@ -25,21 +26,21 @@
$ hg up -C tip
13 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg log -r tip -T'{files}'
f/t/o h/w/l j/h/p j/o/e x/l/j x/z/b (no-eol)
d/d/c f/n/p i/t/b n/y/p u/d/a y/n/h (no-eol)
$ ls */*/*
f/t/o
h/u/h
h/w/l
j/h/p
j/o/e
l/c/h
r/f/c
u/y/a
v/c/c
w/k/a
x/l/j
x/z/b
y/d/e
d/d/c
f/n/p
i/t/b
j/i/e
j/q/a
k/s/d
n/y/p
t/a/e
u/d/a
u/r/g
x/m/c
x/n/c
y/n/h
Set startcommit=0 and confirm it creates a commit off of 0.
$ setconfig repogenerator.startcommit=0