##// END OF EJS Templates
dirstate: add a function to compute non-normal entries from the dmap...
Laurent Charignon -
r27588:714849ba default
parent child Browse files
Show More
@@ -49,6 +49,11 b' def _getfsnow(vfs):'
49 os.close(tmpfd)
49 os.close(tmpfd)
50 vfs.unlink(tmpname)
50 vfs.unlink(tmpname)
51
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)
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
General Comments 0
You need to be logged in to leave comments. Login now