Mercurial > hg
changeset 610:4c02464cb9f0
check export options for changeset before running
# HG changeset patch
# User shaleh@speakeasy.net
# Node ID 0cc64f4312540b2081c76dc589cc825d734676d8
# Parent f7bfe827ea381afc89f486b2d93d7f4fe86de04d
check export options for changeset before running
diff -r f7bfe827ea38 -r 0cc64f431254 mercurial/commands.py
author | shaleh@speakeasy.net |
---|---|
date | Mon, 04 Jul 2005 11:06:01 -0800 |
parents | 2acf1f5df2e6 |
children | 48c3eb2bf844 |
files | mercurial/commands.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Jul 04 11:00:25 2005 -0800 +++ b/mercurial/commands.py Mon Jul 04 11:06:01 2005 -0800 @@ -526,6 +526,9 @@ def export(ui, repo, *changesets, **opts): """dump the header and diffs for one or more changesets""" + if not changesets: + ui.warn("error: export requires at least one changeset\n") + sys.exit(1) seqno = 0 revs = list(revrange(ui, repo, changesets)) total = len(revs)