Changeset 3c3e96fe0394…
Parent f228eb0987cc…
by
Changes to 2 files · Browse files at 3c3e96fe0394 Showing diff from parent f228eb0987cc Diff from another changeset...
@@ -297,5 +297,10 @@ # TODO: same options as patchbomb
# TODO: repo should be specified as an argument?
# TODO: if no revs specified?
+ if opts.get('rev'):
+ if revs:
+ raise util.Abort(_('use only one form to specify the revision'))
+ revs = opts.get('rev')
+
repo = hg.repository(ui, paths.find_root())
return EmailDialog(repo.ui, repo, revs)
|
@@ -642,7 +642,10 @@ _('thg clone [OPTION]... SOURCE [DEST]')),
"bug": (bug, [], _('thg bug [MESSAGE]')),
"^grep|search": (grep, [], _('hgtk grep')),
- "^email": (email, [], _('thg email [REVS]')),
+ "^email":
+ (email,
+ [('r', 'rev', [], _('a revision to send')),],
+ _('thg email [REVS]')),
"^log|history|explorer|workbench":
(log,
[('l', 'limit', '', _('limit number of changes displayed'))],
|
Loading...