Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


DuplicateNameRevisions

Built-in

SYNTAX

DuplicateNameRevisions oldName newName… [-private] [-project project]
[-public] [-r] [-u user]

DESCRIPTION

The DuplicateNameRevisions command duplicates a symbolic name used to represent a set of file revisions under Projector. You can create a symbolic name by using the NameRevisions command.

If the set of revisions does not belong to the current project, you can use the -project option to specify the project in which the symbolic name belongs. The -private and -public options allow you to specify whether to duplicate private or public symbolic names.

This built-in command was added in the v. 3.5 MPW Shell.

Note
To see which names have been duplicated, use the -log option of the ProjectInfo command. •

INPUT

None

OUTPUT

None

STATUS

DuplicateNameRevisions can return the following status codes:

0

no errors

1

syntax error

2

error in processing

PARAMETERS

oldName

The existing symbolic name that you want to duplicate.

newName

The new symbolic name that you want to create.

OPTIONS

-private

Creates private symbolic names.

-project project

Indicates the project that contains the set of revisions referred to by the symbolic names. This project then becomes the current project for this command. If you omit this option, DuplicateNameRevisions defaults to the current project.

-public

Creates public names (the default).

-r

Executes DuplicateNameRevisions recursively on the current project and all of its subprojects.

-u user

Names the current user, overriding the {User} MPW Shell variable.

EXAMPLES

Suppose you have created a symbolic name Work that is expanded to the files file.c and interactive.c by using the command

NameRevisions Work file.c interactive.c

You could create a new symbolic name Play that expands to the same two files by using the following command

DuplicateNameRevisions Work Play

SEE ALSO

DeleteNames

LockNameRevisions

NameRevisions

ObsoleteNameRevisions

UnlockNameRevisions

UnobsoleteNameRevisions

 
 


Last Updated July 2000