sapling/eden/scm/tests/test-fsmonitor-filemerge.t
Adam Simpkins ab3a7cb21f Move fb-mercurial sources into an eden/scm subdirectory.
Summary:
In preparation for merging fb-mercurial sources to the Eden repository,
move everything from the top-level directory into an `eden/scm`
subdirectory.
2019-11-13 16:04:48 -08:00

33 lines
1.5 KiB
Raku

#require fsmonitor
(Run this test using HGFSMONITOR_TESTS=1)
$ newrepo
$ hg debugdrawdag << EOS
> C # C/A=0\n1\n
> | # B/A=1\n2\n
> | B # C/2=1\n
> |/ # B/2=2\n
> A # A/A=1\n
> EOS
$ enable fsmonitor rebase hgevents
$ setconfig blackbox.track=merge_resolve,watchman blackbox.logsource=true
$ hg rebase -s B -d C --tool=false
rebasing 65f3e88a53bc "B" (B)
merging 2
merging A
merging 2 failed!
unresolved conflicts (see hg resolve, then hg rebase --continue)
[1]
$ hg blackbox --no-timestamp --no-sid --pattern '{"watchman":"_"}' | egrep '(watchman.*state.*)'
[watchman] command ["state-enter",{"metadata":{"distance":3,"merge":false,"partial":false,"rev":"0000000000000000000000000000000000000000","status":"ok"},"name":"hg.update"}] finished in 0 ms
[watchman] command ["state-leave",{"metadata":{"distance":3,"merge":false,"partial":false,"rev":"2e2f27616b65209eecd4710c454df0f678f271d9","status":"ok"},"name":"hg.update"}] finished in 0 ms
[watchman] command ["state-enter",{"metadata":{"distance":3,"merge":true,"partial":false,"rev":"2e2f27616b65209eecd4710c454df0f678f271d9","status":"ok"},"name":"hg.update"}] finished in 0 ms
[watchman] command ["state-enter",{"metadata":{"path":"2"},"name":"hg.filemerge"}] finished in 0 ms
[watchman] command ["state-leave",{"metadata":{"path":"2"},"name":"hg.filemerge"}] finished in 0 ms
[watchman] command ["state-leave",{"metadata":{"distance":3,"merge":true,"partial":false,"rev":"65f3e88a53bc0f5183deea0cdbc46738777ec005","status":"ok"},"name":"hg.update"}] finished in 0 ms