Show More
@@ -636,6 +636,12 b' class repowatcher(pollable):' | |||||
636 | assert evt.fullpath.startswith(self.wprefix) |
|
636 | assert evt.fullpath.startswith(self.wprefix) | |
637 | wpath = evt.fullpath[len(self.wprefix):] |
|
637 | wpath = evt.fullpath[len(self.wprefix):] | |
638 |
|
638 | |||
|
639 | # paths have been normalized, wpath never ends with a '/' | |||
|
640 | ||||
|
641 | if wpath.startswith('.hg/') and evt.mask & inotify.IN_ISDIR: | |||
|
642 | # ignore subdirectories of .hg/ (merge, patches...) | |||
|
643 | continue | |||
|
644 | ||||
639 | if evt.mask & inotify.IN_UNMOUNT: |
|
645 | if evt.mask & inotify.IN_UNMOUNT: | |
640 | self.process_unmount(wpath, evt) |
|
646 | self.process_unmount(wpath, evt) | |
641 | elif evt.mask & (inotify.IN_MODIFY | inotify.IN_ATTRIB): |
|
647 | elif evt.mask & (inotify.IN_MODIFY | inotify.IN_ATTRIB): |
@@ -50,4 +50,24 b' hg add h' | |||||
50 | hg status |
|
50 | hg status | |
51 | hg ci -m0 |
|
51 | hg ci -m0 | |
52 |
|
52 | |||
|
53 | # Test for issue1735: inotify watches files in .hg/merge | |||
|
54 | hg st | |||
|
55 | ||||
|
56 | echo a > a | |||
|
57 | ||||
|
58 | hg ci -Am a | |||
|
59 | hg st | |||
|
60 | ||||
|
61 | echo b >> a | |||
|
62 | hg ci -m ab | |||
|
63 | hg st | |||
|
64 | ||||
|
65 | echo c >> a | |||
|
66 | hg st | |||
|
67 | ||||
|
68 | hg up 0 | |||
|
69 | hg st | |||
|
70 | ||||
|
71 | HGMERGE=internal:local hg up | |||
|
72 | hg st | |||
53 | kill `cat hg.pid` |
|
73 | kill `cat hg.pid` |
General Comments 0
You need to be logged in to leave comments.
Login now