comparison hgext/fsmonitor/__init__.py @ 45557:2c86b9587740

merge: make low-level update() private (API) We have very few callers left that call the low-level `merge.update()` function. I think it's time to make it private. I'll remove the remaining callers in coming patches, except for one call from the `rebase` module. I hope to eventually fix that too, but it's more complex because it requires teaching `merge.graft()` to work with a dirty working copy. Differential Revision: https://phab.mercurial-scm.org/D9065
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 21 Sep 2020 11:12:58 -0700
parents c1d6e930ac8a
children 89a2afe31e82
comparison
equal deleted inserted replaced
45556:03726f5b6092 45557:2c86b9587740
725 ) 725 )
726 if pycompat.isdarwin: 726 if pycompat.isdarwin:
727 # An assist for avoiding the dangling-symlink fsevents bug 727 # An assist for avoiding the dangling-symlink fsevents bug
728 extensions.wrapfunction(os, b'symlink', wrapsymlink) 728 extensions.wrapfunction(os, b'symlink', wrapsymlink)
729 729
730 extensions.wrapfunction(merge, b'update', wrapupdate) 730 extensions.wrapfunction(merge, b'_update', wrapupdate)
731 731
732 732
733 def wrapsymlink(orig, source, link_name): 733 def wrapsymlink(orig, source, link_name):
734 ''' if we create a dangling symlink, also touch the parent dir 734 ''' if we create a dangling symlink, also touch the parent dir
735 to encourage fsevents notifications to work more correctly ''' 735 to encourage fsevents notifications to work more correctly '''