Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

thgrepo: watch hgrc files for modifications

Changeset 44e4072dd0d3

Parent b9dfd5b5867f

by Steve Borho

Changes to one file · Browse files at 44e4072dd0d3 Showing diff from parent b9dfd5b5867f Diff from another changeset...

 
40
41
42
 
43
44
45
46
47
48
49
50
 
51
52
53
54
55
 
107
108
109
 
 
 
 
 
110
111
112
 
40
41
42
43
44
 
45
46
47
48
49
50
51
52
 
53
54
55
 
107
108
109
110
111
112
113
114
115
116
117
@@ -40,16 +40,16 @@
  if _ui is None:   _ui = uimod.ui()   repo = bundlerepo.bundlerepository(_ui, path, bundle) + repo.__class__ = _extendrepo(repo)   repo._pyqtobj = ThgRepoWrapper(repo) - repo.__class__ = _extendrepo(repo)   return repo   if create or path not in _repocache:   if _ui is None:   _ui = uimod.ui()   try:   repo = hg.repository(_ui, path, create) + repo.__class__ = _extendrepo(repo)   repo._pyqtobj = ThgRepoWrapper(repo) - repo.__class__ = _extendrepo(repo)   _repocache[path] = repo   return repo   except EnvironmentError: @@ -107,6 +107,11 @@
  if hglib.tounicode(f) not in files:   dbgoutput('add file to watcher:', f)   self.watcher.addPath(f) + _, existing = self.repo.uifiles() + for f in existing: + if f and hglib.tounicode(f) not in files: + dbgoutput('add ui file to watcher:', f) + self.watcher.addPath(f)     def pollStatus(self):   if not os.path.exists(self.repo.path):