mercurial/commands.py
changeset 610 4c02464cb9f0
parent 609 2acf1f5df2e6
child 612 9cd745437269
--- 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)