[cig-commits] commit: fseed: make pathalias default to "default"

Mercurial hg at geodynamics.org
Mon Nov 24 11:26:53 PST 2008


changeset:   23:4a6203d00e27
parent:      21:480744732cac
user:        Brendan Cully <brendan at kublai.com>
date:        Tue Oct 31 10:14:48 2006 -0800
files:       forest.py
description:
fseed: make pathalias default to "default"


diff -r 480744732cac -r 4a6203d00e27 forest.py
--- 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 @@ def push(ui, toprepo, snapfile, pathalia
     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 @@ def uisetup(ui):
               ('', '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]'),



More information about the CIG-COMMITS mailing list