Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/mq.py @ 2097:4d2c2597876f
Fix hg qdiff <file>
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Wed, 19 Apr 2006 11:41:27 -0700 |
parents | 8742352db413 |
children | 5acd648770d0 |
comparison
equal
deleted
inserted
replaced
2096:f5ebe964c6be | 2097:4d2c2597876f |
---|---|
1106 q.save_dirty() | 1106 q.save_dirty() |
1107 return 0 | 1107 return 0 |
1108 | 1108 |
1109 def diff(ui, repo, *files, **opts): | 1109 def diff(ui, repo, *files, **opts): |
1110 """diff of the current patch""" | 1110 """diff of the current patch""" |
1111 repomap[repo].diff(repo, files) | 1111 # deep in the dirstate code, the walkhelper method wants a list, not a tuple |
1112 repomap[repo].diff(repo, list(files)) | |
1112 return 0 | 1113 return 0 |
1113 | 1114 |
1114 def lastsavename(path): | 1115 def lastsavename(path): |
1115 (dir, base) = os.path.split(path) | 1116 (dir, base) = os.path.split(path) |
1116 names = os.listdir(dir) | 1117 names = os.listdir(dir) |