Skip to content

Commit

Permalink
subtree: add a test to reproduce not found error for new files
Browse files Browse the repository at this point in the history
Summary:
This diff adds a test to reproduce a bug in `subtree merge` command. This bug
happens when there are new files on the remote side.

Reviewed By: quark-zju

Differential Revision: D66801931

fbshipit-source-id: 2caa6034525c79e371d9ee7aacf2ed0efd60d4ba
  • Loading branch information
zzl0 authored and facebook-github-bot committed Dec 10, 2024
1 parent edbb77d commit 3f974b3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions eden/scm/tests/test-subtree-merge.t
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,27 @@ test subtree merge from copy dest -> copy source
bbb
+dest

test subtree merge from copy dest -> copy source, with new file in copy dest
$ newclientrepo
$ drawdag <<'EOS'
> B # B/foo/y = bbb\n
> |
> A # A/foo/x = aaa\n
> # drawdag.defaultfiles=false
> EOS
$ hg go -q $B
$ hg subtree copy --from-path foo --to-path foo2
copying foo to foo2
$ echo 1 >> foo2/new
$ hg ci -Aqm "add foo2/new"
tofix: should not abort with not found in manifest
$ hg subtree merge --from-path foo2 --to-path foo
merge base: 9998a5c40732
abort: foo/new@b25c37d96b54: not found in manifest!
[255]
$ hg st
$ hg diff

test subtree merge from copy dest -> copy source with conflicts
$ newclientrepo
$ drawdag <<'EOS'
Expand Down

0 comments on commit 3f974b3

Please sign in to comment.