equal
deleted
inserted
replaced
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 |