Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

hglib: workaround bundlerepo bug in Mercurial 1.3

Changeset 9e63fca4e8c4

Parent ba6403563d93

by Steve Borho

Changes to one file · Browse files at 9e63fca4e8c4 Showing diff from parent ba6403563d93 Diff from another changeset...

 
14
15
16
17
 
18
19
20
 
110
111
112
 
 
 
 
113
114
115
 
14
15
16
 
17
18
19
20
 
110
111
112
113
114
115
116
117
118
119
@@ -14,7 +14,7 @@
 from mercurial.error import RepoError, ParseError, LookupError, RepoLookupError  from mercurial.error import UnknownCommand, AmbiguousCommand  from mercurial import hg, ui, util, extensions, commands, hook, match -from mercurial import dispatch, encoding, templatefilters +from mercurial import dispatch, encoding, templatefilters, bundlerepo  _encoding = encoding.encoding  _encodingmode = encoding.encodingmode  _fallbackencoding = encoding.fallbackencoding @@ -110,6 +110,10 @@
  return True    def invalidaterepo(repo): + if isinstance(repo, bundlerepo.bundlerepository): + # Work around a bug in hg-1.3. repo.invalidate() breaks + # overlay bundlerepos + return   repo.invalidate()   repo.dirstate.invalidate()   if 'mq' in repo.__dict__: #do not create if it does not exist