Mercurial > hgsubversion
diff diff_cmd.py @ 181:e37f9d3fd5e7
remove decorators (compat with python2.3)
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 13 Jan 2009 13:59:50 +0100 |
parents | 1fde85a10f9e |
children | 57355b0e7bd1 |
line wrap: on
line diff
--- a/diff_cmd.py +++ b/diff_cmd.py @@ -24,7 +24,6 @@ def filterdiff(diff, base_revision): return diff -@util.register_subcommand('diff') def diff_command(ui, repo, hg_repo_path, **opts): """Show a diff of the most recent revision against its parent from svn. """ @@ -47,3 +46,4 @@ def diff_command(ui, repo, hg_repo_path, 'text': False, })) ui.write(filterdiff(''.join(it), base_rev)) +diff_command = util.register_subcommand('diff')(diff_command)