mercurial/dirstate.py
changeset 27588 714849ba7836
parent 27503 0f4596622273
child 27589 3e4f9d78ebd4
equal deleted inserted replaced
27587:c8dc480142a8 27588:714849ba7836
    46     try:
    46     try:
    47         return os.fstat(tmpfd).st_mtime
    47         return os.fstat(tmpfd).st_mtime
    48     finally:
    48     finally:
    49         os.close(tmpfd)
    49         os.close(tmpfd)
    50         vfs.unlink(tmpname)
    50         vfs.unlink(tmpname)
       
    51 
       
    52 def nonnormalentries(dmap):
       
    53     '''Compute the nonnormal dirstate entries from the dmap'''
       
    54     return set(fname for fname, e in dmap.iteritems()
       
    55            if e[0] != 'n' or e[3] == -1)
    51 
    56 
    52 def _trypending(root, vfs, filename):
    57 def _trypending(root, vfs, filename):
    53     '''Open  file to be read according to HG_PENDING environment variable
    58     '''Open  file to be read according to HG_PENDING environment variable
    54 
    59 
    55     This opens '.pending' of specified 'filename' only when HG_PENDING
    60     This opens '.pending' of specified 'filename' only when HG_PENDING