shallowbundle: demonstrate circular node dependency happens

Summary: Without the previous fix, this would be an infinite loop.

Reviewed By: DurhamG

Differential Revision: D9174385

fbshipit-source-id: a2529c687768f73382f9e23984ada7ebcb384b2b
This commit is contained in:
Jun Wu 2018-08-06 22:55:25 -07:00 committed by Facebook Github Bot
parent 4fb34160e2
commit 18fc405471

View File

@ -0,0 +1,27 @@
$ setconfig remotefilelog.cachepath=$TESTTMP/cache extensions.remotefilelog=
$ newrepo
$ echo remotefilelog >> .hg/requires
$ drawdag <<'EOS'
> E # E/X=1 (renamed from Y)
> |
> D # D/Y=3 (renamed from X)
> |
> B # B/X=2
> |
> A # A/X=1
> EOS
$ hg bundle --all $TESTTMP/bundle --traceback -q
$ newrepo
$ echo remotefilelog >> .hg/requires
$ hg unbundle $TESTTMP/bundle
adding changesets
adding manifests
adding file changes
transaction abort!
rollback completed
abort: circular node dependency
[255]