##// END OF EJS Templates
merge: store ACTION_KEEP_ABSENT when we are keeping the file absent locally...
Pulkit Goyal -
r46040:09edbff6 default
parent child Browse files
Show More
@@ -1023,6 +1023,13 b' def manifestmerge('
1023 (None, f, f, False, pa.node()),
1023 (None, f, f, False, pa.node()),
1024 b'prompt deleted/changed',
1024 b'prompt deleted/changed',
1025 )
1025 )
1026 else:
1027 mresult.addfile(
1028 f,
1029 mergestatemod.ACTION_KEEP_ABSENT,
1030 None,
1031 b'local not present, remote unchanged',
1032 )
1026
1033
1027 if repo.ui.configbool(b'experimental', b'merge.checkpathconflicts'):
1034 if repo.ui.configbool(b'experimental', b'merge.checkpathconflicts'):
1028 # If we are merging, look for path conflicts.
1035 # If we are merging, look for path conflicts.
@@ -572,28 +572,26 b' BROKEN: this should result in conflict'
572 $ hg update --clean 'desc("merge-deleting-the-file-from-deleted")'
572 $ hg update --clean 'desc("merge-deleting-the-file-from-deleted")'
573 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
573 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
574 $ hg merge 'desc("merge-keeping-the-file-from-deleted")'
574 $ hg merge 'desc("merge-keeping-the-file-from-deleted")'
575 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
575 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
576 (branch merge, don't forget to commit)
576 (branch merge, don't forget to commit)
577 $ ls -1
577 $ ls -1
578 other-file
578 other-file
579 the-file
580
579
581 (merging a deletion with keeping → conflict)
580 (merging a deletion with keeping → conflict)
582 BROKEN: this should result in conflict
581 BROKEN: this should result in conflict
583
582
584 $ hg update --clean 'desc("merge-deleting-the-file-from-deleted")'
583 $ hg update --clean 'desc("merge-deleting-the-file-from-deleted")'
585 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
584 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
586 $ hg merge 'desc("merge-keeping-the-file-from-updated")'
585 $ hg merge 'desc("merge-keeping-the-file-from-updated")'
587 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
586 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
588 (branch merge, don't forget to commit)
587 (branch merge, don't forget to commit)
589 $ ls -1
588 $ ls -1
590 other-file
589 other-file
591 the-file
592
590
593 (merging two deletion together no conflict)
591 (merging two deletion together no conflict)
594
592
595 $ hg update --clean 'desc("merge-deleting-the-file-from-updated")'
593 $ hg update --clean 'desc("merge-deleting-the-file-from-updated")'
596 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
594 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
597 $ hg merge 'desc("merge-deleting-the-file-from-deleted")'
595 $ hg merge 'desc("merge-deleting-the-file-from-deleted")'
598 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
596 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
599 (branch merge, don't forget to commit)
597 (branch merge, don't forget to commit)
@@ -606,23 +604,21 b' BROKEN: this should result in conflict'
606 $ hg update --clean 'desc("merge-deleting-the-file-from-updated")'
604 $ hg update --clean 'desc("merge-deleting-the-file-from-updated")'
607 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
605 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
608 $ hg merge 'desc("merge-keeping-the-file-from-deleted")'
606 $ hg merge 'desc("merge-keeping-the-file-from-deleted")'
609 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
607 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
610 (branch merge, don't forget to commit)
608 (branch merge, don't forget to commit)
611 $ ls -1
609 $ ls -1
612 other-file
610 other-file
613 the-file
614
611
615 (merging a deletion with keeping conflict)
612 (merging a deletion with keeping conflict)
616 BROKEN: this should result in conflict
613 BROKEN: this should result in conflict
617
614
618 $ hg update --clean 'desc("merge-deleting-the-file-from-updated")'
615 $ hg update --clean 'desc("merge-deleting-the-file-from-updated")'
619 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
616 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
620 $ hg merge 'desc("merge-keeping-the-file-from-updated")'
617 $ hg merge 'desc("merge-keeping-the-file-from-updated")'
621 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
618 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
622 (branch merge, don't forget to commit)
619 (branch merge, don't forget to commit)
623 $ ls -1
620 $ ls -1
624 other-file
621 other-file
625 the-file
626
622
627 (merging two "keeping" together → no conflict)
623 (merging two "keeping" together → no conflict)
628
624
General Comments 0
You need to be logged in to leave comments. Login now