|
NAMEaepatch - send and receive changes as patchesSYNOPSISaepatch -send [ option... ]aepatch -receive [ option... ] aepatch -list [ option... ] aepatch -Help aepatch -VERSion DESCRIPTIONThe aepatch command is used to send Aegis changes as patches, or receive patches and turn them into Aegis changes.Please note that this only works for text files. If your project uses binary files, the aepatch program will not be useful because the diff(1) and patch(1) commands only work on text files. Also, this only works for files with names which do not contain white space. If you need to merge matches together, you could use the GNU patch utils, which include a tool to merge patches together. SENDThe send variant takes a specified change and constructs a patch containing all of the changes to all of the files in that change. The result is compressed, and encoded into a text format which can be sent as e‐mail without being corrupted by the mail transfer agents along the way.The output of the aepatch -send command is a normal Unix patch, as you would produce using diff(1), bzip2(1) and a MIME encoder such as mpack(1). There are no special formats. The output can be uncompressed with the normal bunzip2(1) command and applied with the normal patch(1) command. The compression algorithm is selectable via the -compression‐algorithm option, see the OPTIONS section, below, for details. The -compatibility option also understands compression needs. Generating Traditional PatchesIf you wish to send "traditional" patches to developers who are not using Aegis to manage the sources at their end, you can use the following options:aepatch -send -cte=none
-comp‐alg=none
This says to use no Content Transfer Encoding, and no compression. If you wish
to also omit the Aegis meta data, you can use the following options:
aepatch -send -cte=none -nocomp
-compat=4.16
This setting for the -compatibility option omits all Aegis extensions.
By default, a context diff is generated. Some projects prefer to use the unified diff format. This is controlled by the patch_diff_command field of the project configuration file (see aepconf(5) for more information). If you have GNU diff, use the following command: patch_diff_command = "set +e; "
"diff -u --text "
"-L ${quote $index} -L ${quote $index} "
"${quote $original} ${quote $input} > ${quote $output}; "
"test $? -le 1"";
This setting will cause the aepatch(1) command to produce unified diff
patches instead of context diff patches. As you can see from this command, the
aepatch(1) command is onlu of use if you have text source files; it
produces less than ideal results for binary files.
OptionsThe following options are understood by the send variant:
This option may be used to specify the compression to be
used. They are listed on order of compression effeciency.
More compression algorithms may be added in the future.
This option may be used to specify the content transfer
encoding to be used. It may take one of the following values:
These encodings may be abbreviated in the same way as comment line options.
RECEIVEThe receive variant takes a patch and creates an Aegis change (see aenc(1)) to implement the change within. Files are added to the change (see aenf(1), aecp(1), aerm(1), aent(1)) and then the patch contents are unpackaged into the development directory, and the changes applied to the files.The patch does not have to be produced by the aepatch(1) command. Normal patches produced by diff(1) command are also valid input. The intent is that you can particicate in normal open source development, and also use Aegis, even if your fellow developers are not. Once unpacked, the change is then built (see aeb(1)), differenced (see aed(1)), and tested (see aet(1)). The automatic process stops at this point, so that you can confirm that the change is desired. File NamesIt is common for patch files generated using the usual diff -r mechanism to contain extra path prefixes. The aepatch(1) command attempts to remove these automagically. This is usually possible because patches usually modify files within the project, so the patch file names are compared with project file names to guess which and how much path prefixes to remove.
If you have a complex project directory structure, from time to time people may send you patches relative to a sub‐directory, rather than relative to the project root. The aepatch(1) program can't guess this by itself.
NotificationThe aepatch command invokes various other Aegis commands. The usual notifications that these commands would issue are issued.OptionsThe following options are understood by the receive variant:
This option may be used to specify which directory is to
be used. It is an error if the current user does not have appropriate
permissions to create the directory path given. This must be an absolute path.
Caution: If you are using an automounter do not use `pwd` to make an absolute path, it usually gives the wrong answer.
Read the change set from the specified file. The default
is to read it from the standard input. The filename `-' is understood to mean
the standard input.
If your system has libcurl(3), and Aegis was configured to use it at compile time (this is the default if it is available) you will also be able to specify a Uniform Resource Locator (URL) in place of the file name. The relevant data will be downloaded. (The -Verbose option will provide a progress bar.)
SecurityReceiving changes by e‐mail, and automatically committing them to the baseline without checking them, would be a recipe for disaster. A number of safeguards are provided:
LISTThe list variant can be used to list the contents of a package without actually unpacking it first. The output is reminiscent of the aegis -list change‐details output.OptionsThe following options are understood by the list variant:
Read the change set from the specified file. The default
is to read it from the standard input. The filename `-' is understood to mean
the standard input.
If your system has libcurl(3), and Aegis was configured to use it at compile time (this is the default if it is available) you will also be able to specify a Uniform Resource Locator (URL) in place of the file name. The relevant data will be downloaded. (The -Verbose option will provide a progress bar.)
OPTIONSThe following options to this command haven't been mentioned yet:
See also aegis(1) for options common to all aegis commands. All options may be abbreviated; the abbreviation is documented as the upper case letters, all lower case letters and underscores (_) are optional. You must use consecutive sequences of optional letters. All options are case insensitive, you may type them in upper case or lower case or a combination of both, case is not important. For example: the arguments “-project”, “-PROJ” and “-p” are all interpreted to mean the -Project option. The argument “-prj” will not be understood, because consecutive optional characters were not supplied. Options and other command line arguments may be mixed arbitrarily
on the command line, after the function selectors.
The GNU long option names are understood. Since all option names for aepatch are long, this means ignoring the extra leading '-'. The “--option=value” convention is also understood. FILE FORMATThe file format re‐uses existing formats, rather than introduce anything new. This means it is possible to extract the contents of a package even when aepatch is unavailable.
EXIT STATUSThe aepatch command will exit with a status of 1 on any error. The aepatch command will only exit with a status of 0 if there are no errors.ENVIRONMENT VARIABLESSee aegis(1) for a list of environment variables which may affect this command. See aepconf(5) for the project configuration file's project_specific field for how to set environment variables for all commands executed by Aegis.COPYRIGHTaepatch version 4.25.D510Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Peter Miller The aepatch program comes with ABSOLUTELY NO WARRANTY; for details
use the 'aepatch -VERSion License' command. This is free software and
you are welcome to redistribute it under certain conditions; for details use
the 'aepatch -VERSion License' command.
AUTHOR
Visit the GSP FreeBSD Man Page Interface. |