changeset 23:4a6203d00e27

fseed: make pathalias default to "default"
author Brendan Cully <brendan@kublai.com>
date Tue, 31 Oct 2006 10:14:48 -0800
parents 480744732cac
children 2d991bfffb86
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
@@ -272,7 +272,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()
@@ -364,7 +364,7 @@
               ('', 'root', '',
                _("Create root as well as children under <root>"))] +
              cmd_options(ui, 'clone', remove=('r',)),
-             _('hg fseed [OPTIONS] SNAPSHOT-FILE PATH-ALIAS')),
+             _('hg fseed [OPTIONS] SNAPSHOT-FILE [PATH-ALIAS]')),
         "fsnap" :
             (snapshot, [],
              'hg fsnap [SNAPSHOT-FILE]'),