Mercurial > hg-stable
comparison hgext/hgk.py @ 6760:4faaa0535ea7
status: clean up all users for unknown files
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 27 Jun 2008 13:43:29 -0500 |
parents | fb42030d79d6 |
children | e3bb005373b1 cc7114d96548 |
comparison
equal
deleted
inserted
replaced
6759:9d2ab50803e9 | 6760:4faaa0535ea7 |
---|---|
53 def __difftree(repo, node1, node2, files=[]): | 53 def __difftree(repo, node1, node2, files=[]): |
54 assert node2 is not None | 54 assert node2 is not None |
55 mmap = repo[node1].manifest() | 55 mmap = repo[node1].manifest() |
56 mmap2 = repo[node2].manifest() | 56 mmap2 = repo[node2].manifest() |
57 m = cmdutil.match(repo, files) | 57 m = cmdutil.match(repo, files) |
58 status = repo.status(node1, node2, match=m)[:5] | 58 modified, added, removed = repo.status(node1, node2, m)[:3] |
59 modified, added, removed, deleted, unknown = status | |
60 | |
61 empty = short(nullid) | 59 empty = short(nullid) |
62 | 60 |
63 for f in modified: | 61 for f in modified: |
64 # TODO get file permissions | 62 # TODO get file permissions |
65 ui.write(":100664 100664 %s %s M\t%s\t%s\n" % | 63 ui.write(":100664 100664 %s %s M\t%s\t%s\n" % |