Cleartool removing a checkedout file from a folder with rmname

前端 未结 1 1845
天命终不由人
天命终不由人 2021-01-16 11:48

How can I use cleartool rmname to remove a file, that is checkedout by some one else, from a folder? Is this possible?

1条回答
  •  别那么骄傲
    2021-01-16 12:30

    The command-line cleartool rname -force is only necessary when the file is checked out in another branch.

    That allows to bypass the error message: 'file' has checkouts

    Error message

    In that case, you need to check out the parent directory first, rmname, and then don't forget to check in the parent directory, or your file will still be visible by others.

    See more at the technote "About cleartool rmname and checkouts"

    There is a -force option available for cleartool rmname from command line that will allow the command execution to work even while there are checkouts.

    This option forces the removal of the name from the directory when there is at least one checkout of the element, but it does not actually cancel any checkouts of the element.

    0 讨论(0)
提交回复
热议问题