diff -r 15e7c6cee929 -r fc4a6e5b5812 mercurial/commands.py --- a/mercurial/commands.py Fri Jun 03 12:56:50 2005 -0800 +++ b/mercurial/commands.py Fri Jun 03 12:58:47 2005 -0800 @@ -153,6 +153,14 @@ if n != hg.nullid: ui.write("%d:%s\n" % (repo.changelog.rev(n), hg.hex(n))) +def resolve(ui, repo, node = None): + '''merge a given node or the current tip into the working dir''' + if not node: + node = repo.changelog.tip() + else: + node = repo.lookup(node) + repo.resolve(node) + def status(ui, repo): '''show changed files in the working directory @@ -184,6 +192,7 @@ ('c', 'changeset', None, 'show changeset')], 'hg annotate [-u] [-c] [-n] [-r id] [files]'), "parents": (parents, [], 'hg parents [node]'), + "resolve": (resolve, [], 'hg resolve [node]'), "status": (status, [], 'hg status'), "undo": (undo, [], 'hg undo'), }