mercurial/context.py
changeset 11144 ca46910dd9ea
parent 11110 22f5ad0b5857
parent 11143 e0a0af140f2e
child 11151 c5c190822501
equal deleted inserted replaced
11142:0bf79efeaa20 11144:ca46910dd9ea
   722         orig = self._repo.dirstate.copies().get(path, path)
   722         orig = self._repo.dirstate.copies().get(path, path)
   723 
   723 
   724         def findflag(ctx):
   724         def findflag(ctx):
   725             mnode = ctx.changeset()[0]
   725             mnode = ctx.changeset()[0]
   726             node, flag = self._repo.manifest.find(mnode, orig)
   726             node, flag = self._repo.manifest.find(mnode, orig)
   727             ff = self._repo.dirstate.flagfunc(lambda x: flag or None)
   727             ff = self._repo.dirstate.flagfunc(lambda x: flag or '')
   728             try:
   728             try:
   729                 return ff(path)
   729                 return ff(path)
   730             except OSError:
   730             except OSError:
   731                 pass
   731                 pass
   732 
   732