Mercurial > hg > hg-git
comparison hggit/__init__.py @ 735:351213785c4a
gexport: drop empty options and redundant synopsis, and add help text
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Mon, 19 May 2014 21:07:09 -0700 |
parents | 5e53342c846b |
children | b48be97bd6fd |
comparison
equal
deleted
inserted
replaced
734:5e53342c846b | 735:351213785c4a |
---|---|
124 @command('gimport') | 124 @command('gimport') |
125 def gimport(ui, repo, remote_name=None): | 125 def gimport(ui, repo, remote_name=None): |
126 '''import commits from Git to Mercurial''' | 126 '''import commits from Git to Mercurial''' |
127 repo.githandler.import_commits(remote_name) | 127 repo.githandler.import_commits(remote_name) |
128 | 128 |
129 @command('gexport', [], _('hg gexport')) | 129 @command('gexport') |
130 def gexport(ui, repo): | 130 def gexport(ui, repo): |
131 '''export commits from Mercurial to Git''' | |
131 repo.githandler.export_commits() | 132 repo.githandler.export_commits() |
132 | 133 |
133 @command('gclear', [], _('Clears out the Git cached data')) | 134 @command('gclear', [], _('Clears out the Git cached data')) |
134 def gclear(ui, repo): | 135 def gclear(ui, repo): |
135 repo.ui.status(_("clearing out the git cache data\n")) | 136 repo.ui.status(_("clearing out the git cache data\n")) |