hgext/inhibit.py
changeset 1338 77cbf9121e8a
parent 1334 b8f880d4171d
child 1339 0e2eb196923a
equal deleted inserted replaced
1336:10d2ef1f7ed4 1338:77cbf9121e8a
   158     """filter out inhibitor on public changeset
   158     """filter out inhibitor on public changeset
   159 
   159 
   160     Public changesets are already immune to obsolescence"""
   160     Public changesets are already immune to obsolescence"""
   161     getrev = repo.changelog.nodemap.get
   161     getrev = repo.changelog.nodemap.get
   162     getphase = repo._phasecache.phase
   162     getphase = repo._phasecache.phase
   163     return (n for n in repo._obsinhibit if getphase(repo, getrev(n)))
   163     return (n for n in repo._obsinhibit
       
   164             if getrev(n) is not None and getphase(repo, getrev(n)))
   164 
   165 
   165 def _inhibitmarkers(repo, nodes):
   166 def _inhibitmarkers(repo, nodes):
   166     """add marker inhibitor for all obsolete revision under <nodes>
   167     """add marker inhibitor for all obsolete revision under <nodes>
   167 
   168 
   168     Content of <nodes> and all mutable ancestors are considered. Marker for
   169     Content of <nodes> and all mutable ancestors are considered. Marker for