Mercurial > hg
diff hgext/hgk.py @ 6599:cd4db3999ef9
status: use match helpers for various users
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:08 -0500 |
parents | fe8dbbe9520d |
children | cab3ad865444 |
line wrap: on
line diff
--- a/hgext/hgk.py Mon May 12 11:37:08 2008 -0500 +++ b/hgext/hgk.py Mon May 12 11:37:08 2008 -0500 @@ -46,7 +46,7 @@ # vdiff on hovered and selected revisions. import os -from mercurial import commands, util, patch, revlog +from mercurial import commands, util, patch, revlog, cmdutil from mercurial.node import nullid, nullrev, short def difftree(ui, repo, node1=None, node2=None, *files, **opts): @@ -55,7 +55,8 @@ assert node2 is not None mmap = repo.changectx(node1).manifest() mmap2 = repo.changectx(node2).manifest() - status = repo.status(node1, node2, files=files)[:5] + m = cmdutil.matchfiles(repo, files) + status = repo.status(node1, node2, files=m.files(), match=m)[:5] modified, added, removed, deleted, unknown = status empty = short(nullid)