Improve the help text for 'repo start'

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce 2009-04-18 11:19:01 -07:00
parent 8225cdc56b
commit 06e556d202

View File

@ -22,20 +22,10 @@ class Start(Command):
helpSummary = "Start a new branch for development" helpSummary = "Start a new branch for development"
helpUsage = """ helpUsage = """
%prog <newbranchname> [<project>...] %prog <newbranchname> [<project>...]
"""
This subcommand starts a new branch of development that is automatically helpDescription = """
pulled from a remote branch. '%prog' begins a new branch of development, starting from the
revision specified in the manifest.
It is equivalent to the following git commands:
"git branch --track <newbranchname> m/<codeline>",
or
"git checkout --track -b <newbranchname> m/<codeline>".
All three forms set up the config entries that repo bases some of its
processing on. Use %prog or git branch or checkout with --track to ensure
the configuration data is set up properly.
""" """
def Execute(self, opt, args): def Execute(self, opt, args):