xref: /titanic_44/usr/src/tools/scripts/hgsetup.1 (revision 3c112a2b34403220c06c3e2fcac403358cfba168)
CDDL HEADER START

The contents of this file are subject to the terms of the
Common Development and Distribution License (the "License").
You may not use this file except in compliance with the License.

You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions
and limitations under the License.

When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]

CDDL HEADER END

Copyright 2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms."

hgsetup 1 "2 October 2008"
NAME
hgsetup - sets up a user's ~/.hgrc for development of ON with Mercurial
SYNOPSIS
hgsetup [-f] [-c cdm_path] [-m merge_path] [-n name] [-e email] [-p proxy] [-s style_path]

DESCRIPTION
"OS-Net build tools" "hgsetup" "" "hgsetup"

The hgsetup script sets up a user's ~/.hgrc (hgrc(5)) file for development of ON (OS/Net) with Mercurial.

It populates the author and email fields with the user's information. It loads the Cadmium extension. It aliases canonical repositories for onnv-gate. It configures Mercurial to use appropriate merge tools.

OPTIONS

10 -f Force the user's ~/.hgrc to be overwritten if one already exists

10 -c Override the path to the Cadmium extension for Mercurial to load

10 -m Override the default merge configuration, such that a single specified tool is used.

10 -n Specify the name to use for commits (default is taken from passwd file)

10 -e Specify the email address to use for commits. For SWAN users the default is taken from an LDAP query, otherwise -e is mandatory.

10 -p Specify an http_proxy to use for interacting with HTTP repositories

10 -s Override the path to the Mercurial style file

OUTPUT

Generates a .hgrc file in the user's home directory.

SEE ALSO

hgrc(5), hg(1),