by
Changes to one file · Browse files at 66a09fc67e26 Showing diff from parent 6c235635bb82 fa34bf72a8e9 Diff from another changeset...
@@ -21,7 +21,7 @@ import time
def cachefilepath(repo):
- return repo.root + "/.hg/thgstatus"
+ return repo.join("thgstatus")
def dirname(f):
return '/'.join(f.split('/')[:-1])
@@ -76,13 +76,13 @@ time.sleep(tdelta)
repostate = repo.status()
- modified, added, removed, deleted, unknown, ignored, clean = repostate
+ modified, added, removed, deleted = repostate[:4]
dirstatus = {}
for fn in added:
dirstatus[dirname(fn)] = 'a'
for fn in modified:
dirstatus[dirname(fn)] = 'm'
- for fn in removed:
+ for fn in removed + deleted:
dirstatus[dirname(fn)] = 'r'
f = open(cachefilepath(repo), 'wb')
for dn in sorted(dirstatus):
@@ -90,6 +90,7 @@ f.write(e)
showentry(ui.note, e)
f.close()
+ ui.note("thgstatus updated\n")
cmdtable = {
'thgstatus':
|
Loading...