RADE

Source Code Manager

adl_forget_chg

Forgetting changes

Quick Reference

Abstract

The adl_forget_chg command forgets one or many local changes of SCM object(s) in the current workspace and the current image. 


Synopsis

adl_forget_chg object... -all_chg |{-chg changes...} -last | -local [-unco] [-force] [-simul [-simul_dir temp_dir]] [-h | -help | -?]
 

Usage

This command considers local "check-out" as modification (see [1] adl_co command), in the use of the command.
It allows:

To have the list of changes on different objects, you can run the [2] adl_ds_chg command.

[Top]

Options

adl_forget_chg accepts the following options:
 

-h|-help|-? Help of the command
object... Path(es), or identifier(s) prefixed by "soid:" of the SCM object(s) whose local changes are to forget
-all_chg All the changes
-chg changes Specified changes
-last The last local changes
-local  All the local changes
-unco Uncheck-out contained elements in the current image
-force Forget the changes even if they are visible in a published workspace revision.
-simul To simulate the import.
-simul_dir dir_name Temporary directory path in which project the files for simulation.

This command has several options:

[Top]

Warnings About -force

When the -force option is not used, it is mandatory that the modifications to forget are not visible through a published revision of the workspace (cf adl_publish).

Here, we would like to speak about the case of a workspace

In the case where changes are performed locally, then forgotten (adl_forget_chg), then done again (see example) and if a transfer is performed before the command adl_forget_chg is run, then the next transfer will bring the new change and will lead to a merge with the change that has been forgotten in the origin workspace. 
This can be surprising for the user who is running the transfer.

This merge is due to the delta mechanism used by transfers.

Sample

[Top]

Examples

Forget last change of content on the "MyFile" file, in the “MyFramework” in the workspace "MyWsDev":  

adl_ch_ws MyWsDev
cd MyFramework/PublicInterfaces
adl_forget_chg MyFile -chg content -last

 

Forget all changes in my workspace “MyWsDev” for a file  

adl_ch_ws MyWsDev
adl_forget_chg MyFramework/PublicInterfaces/MyFile  -all_chg -local

or

adl_forget_chg soid:DC1WLx9CbYQ3+++-HE5Y  -all_chg -local

 

Simulation where the result of the simulation sent to the "MyTempDir" directory:  

adl_forget_chg MyFramework/PublicInterfaces/ MyFile -chg content -last -simul -simul_dir MyTempDir 

[Top]


References

[2] adl_ds_chg: Displaying changes

[Top]


History

Version 2 [Nov 2002] Add warnings about the use of -force option
Version 1 [Mar 2001] Document created

[Top]


Copyright © 2001, Dassault Systèmes. All rights reserved.