comparison hggit/__init__.py @ 734:5e53342c846b

gimport: drop empty options and redundant synopsis, and add help text
author Siddharth Agarwal <sid0@fb.com>
date Mon, 19 May 2014 21:06:32 -0700
parents a67fecf02adb
children 351213785c4a
comparison
equal deleted inserted replaced
733:a67fecf02adb 734:5e53342c846b
119 def reposetup(ui, repo): 119 def reposetup(ui, repo):
120 if not isinstance(repo, gitrepo.gitrepo): 120 if not isinstance(repo, gitrepo.gitrepo):
121 klass = hgrepo.generate_repo_subclass(repo.__class__) 121 klass = hgrepo.generate_repo_subclass(repo.__class__)
122 repo.__class__ = klass 122 repo.__class__ = klass
123 123
124 @command('gimport', [], _('hg 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 repo.githandler.import_commits(remote_name) 127 repo.githandler.import_commits(remote_name)
127 128
128 @command('gexport', [], _('hg gexport')) 129 @command('gexport', [], _('hg gexport'))
129 def gexport(ui, repo): 130 def gexport(ui, repo):
130 repo.githandler.export_commits() 131 repo.githandler.export_commits()