changeset 737:5d35a5c12b02

git-cleanup: drop empty options and move help text to docstring
author Siddharth Agarwal <sid0@fb.com>
date Mon, 19 May 2014 21:12:40 -0700
parents b48be97bd6fd
children 0812923b3848
files hggit/__init__.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/__init__.py
+++ b/hggit/__init__.py
@@ -158,8 +158,9 @@
     extensions.wrapfunction(ignore, 'ignore', gitdirstate.gignore)
     dirstate.dirstate = gitdirstate.gitdirstate
 
-@command('git-cleanup', [], _('Cleans up git repository after history editing'))
+@command('git-cleanup')
 def git_cleanup(ui, repo):
+    '''clean up Git commit map after history editing'''
     new_map = []
     for line in repo.opener(GitHandler.mapfile):
         gitsha, hgsha = line.strip().split(' ', 1)