mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
tests: add a test to demonstrate metaedit+dirsync issue
Reviewed By: DurhamG Differential Revision: D29430673 fbshipit-source-id: d17a25e892d20dc006ed97d60239b53fb4fbebcc
This commit is contained in:
parent
d249a22fe7
commit
eead6bc10e
40
eden/scm/tests/test-fb-hgext-dirsync-metaedit.t
Normal file
40
eden/scm/tests/test-fb-hgext-dirsync-metaedit.t
Normal file
@ -0,0 +1,40 @@
|
||||
#chg-compatible
|
||||
|
||||
$ shorttraceback
|
||||
$ configure modern
|
||||
$ enable dirsync amend
|
||||
|
||||
$ newrepo
|
||||
|
||||
Create an unsynced commit
|
||||
|
||||
$ drawdag << 'EOS'
|
||||
> C # C/dir1/c=c
|
||||
> |
|
||||
> B # B/dir1/b=b
|
||||
> |
|
||||
> A # A/dir1/a=a
|
||||
> # drawdag.defaultfiles=false
|
||||
> EOS
|
||||
|
||||
Setup dirsync
|
||||
|
||||
$ readconfig <<EOF
|
||||
> [dirsync]
|
||||
> sync1.1=dir1/
|
||||
> sync1.2=dir2/
|
||||
> EOF
|
||||
|
||||
Test metaedit
|
||||
BUG: should not crash
|
||||
|
||||
$ hg metaedit $A -v -m 'A1'
|
||||
committing changelog
|
||||
mirrored adding 'dir1/b' to 'dir2/b'
|
||||
committing files:
|
||||
dir1/b
|
||||
dir2/b
|
||||
committing manifest
|
||||
committing changelog
|
||||
RuntimeError: new p1 manifest (3238fc4c2915bee4faabbe8c65cc6aa918d36f70) is not the old p1 manifest (1f4be1ab4bf257b66c6fc07a9e2c91bfd3158a11)
|
||||
[255]
|
Loading…
Reference in New Issue
Block a user