comparison diff_cmd.py @ 185:57355b0e7bd1

Creating patch for documention messages.
author Dan Villiom Podlaski Christiansen <danchr@cs.au.dk>
date Sat, 17 Jan 2009 15:30:37 -0600
parents e37f9d3fd5e7
children
comparison
equal deleted inserted replaced
184:d3ea6c98a086 185:57355b0e7bd1
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 def diff_command(ui, repo, hg_repo_path, **opts): 27 def diff_command(ui, repo, hg_repo_path, **opts):
28 """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
29 """ 29 """
30 hge = hg_delta_editor.HgChangeReceiver(hg_repo_path, 30 hge = hg_delta_editor.HgChangeReceiver(hg_repo_path,
31 ui_=ui) 31 ui_=ui)
32 svn_commit_hashes = dict(zip(hge.revmap.itervalues(), 32 svn_commit_hashes = dict(zip(hge.revmap.itervalues(),
33 hge.revmap.iterkeys())) 33 hge.revmap.iterkeys()))