check export options for changeset before running
authorshaleh@speakeasy.net
Mon, 04 Jul 2005 11:06:01 -0800
changeset 610 4c02464cb9f0
parent 609 2acf1f5df2e6
child 611 48c3eb2bf844
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
mercurial/commands.py
--- 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)