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

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


changeset:   22:086224c65d7e
parent:      19:69b70c66ead8
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 69b70c66ead8 -r 086224c65d7e forest.py
--- 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 @@ 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()
@@ -359,7 +359,7 @@ cmdtable = {
           ('', '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]'),



More information about the CIG-COMMITS mailing list