comparison 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
comparison
equal deleted inserted replaced
180:3f1e8a5ec9dd 181:e37f9d3fd5e7
22 22
23 diff = header_re.sub(r'Index: \1' + '\n' + ('=' * 67), diff) 23 diff = header_re.sub(r'Index: \1' + '\n' + ('=' * 67), diff)
24 return diff 24 return diff
25 25
26 26
27 @util.register_subcommand('diff')
28 def diff_command(ui, repo, hg_repo_path, **opts): 27 def diff_command(ui, repo, hg_repo_path, **opts):
29 """Show a diff of the most recent revision against its parent from svn. 28 """Show a diff of the most recent revision against its parent from svn.
30 """ 29 """
31 hge = hg_delta_editor.HgChangeReceiver(hg_repo_path, 30 hge = hg_delta_editor.HgChangeReceiver(hg_repo_path,
32 ui_=ui) 31 ui_=ui)
45 'ignore_blank_lines': False, 44 'ignore_blank_lines': False,
46 'unified': True, 45 'unified': True,
47 'text': False, 46 'text': False,
48 })) 47 }))
49 ui.write(filterdiff(''.join(it), base_rev)) 48 ui.write(filterdiff(''.join(it), base_rev))
49 diff_command = util.register_subcommand('diff')(diff_command)