changeset 22:086224c65d7e

fseed: make pathalias default to "default"
author Brendan Cully <brendan@kublai.com>
date Tue, 31 Oct 2006 10:14:48 -0800
parents 69b70c66ead8
children 363fd78db7ce
files forest.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/forest.py	Tue Oct 31 22:04:57 2006 +0100
+++ b/forest.py	Tue Oct 31 10:14:48 2006 -0800
@@ -269,7 +269,7 @@
     snapshot(ui, toprepo, doit, pathalias)
 
 
-def seed(ui, snapshot, pathalias, **opts):
+def seed(ui, snapshot, pathalias='default', **opts):
     """Populate a forest according to a snapshot file."""
 
     cfg = ConfigParser.RawConfigParser()
@@ -359,7 +359,7 @@
           ('', 'root', '',
            _("Create root as well as children under <root>"))] +
          cmd_options('clone', remove=('r',)),
-         _('hg fseed [OPTIONS] SNAPSHOT-FILE PATH-ALIAS')),
+         _('hg fseed [OPTIONS] SNAPSHOT-FILE [PATH-ALIAS]')),
     "fsnap" :
         (snapshot, [],
          'hg fsnap [SNAPSHOT-FILE]'),