##// END OF EJS Templates
inotify: server: explicitely ignore events in subdirs of .hg/ (issue1735)
Nicolas Dumazet -
r9117:a87bc6e2 default
parent child Browse files
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`
@@ -38,3 +38,9 b' adding hg.pid'
38 removing h/h
38 removing h/h
39 A h
39 A h
40 R h/h
40 R h/h
41 M a
42 merging a
43 1 files updated, 1 files merged, 2 files removed, 0 files unresolved
44 M a
45 3 files updated, 1 files merged, 0 files removed, 0 files unresolved
46 M a
General Comments 0
You need to be logged in to leave comments. Login now