기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

Unity Version Control

DevOps

On-prem

Gluon

Editor plug-in

Open Unity Dashboard

Unity Version Control

이 페이지는 선택한 언어로 제공되지 않습니다.
​
​
Unity Version Control
  • Overview
  • Cloud Repositories organization update
  • Installation
  • Use UVCS with the Unity Editor
  • Unity Version Control plugins
  • Concepts
  • Tutorials
  • On-Prem
  • Gluon
  • CLI and shortcut references
    • Unity Version Control CLI
      • acl
      • activateuser
      • add
      • admin
      • annotate
      • api
      • applylocal
      • archive
      • attribute
      • autocomplete
      • branch
      • changelist
      • changerevisiontype
      • changeset
      • changeuserpassword
      • checkconnection
      • checkin
      • checkout
      • checkselectorsyntax
      • clone
      • codereview
      • configure
      • crypt
      • deactivateuser
      • diff
      • diffmetrics
      • fastexport
      • fastimport
      • fileinfo
      • find
      • getconfig
      • getfile
      • getrevision
      • getstatus
      • gettaskbranches
      • getworkspacefrompath
      • getworkspaceinfo
      • help
      • history
      • iostats
      • issuetracker
      • label
      • licenseinfo
      • linktask
      • list
      • listusers
      • location
      • lock
        • lock create
        • lock list
        • lock unlock
      • log
      • merge
      • move
      • objectspec
      • partial
      • patch
      • profile
      • pull
      • purge
      • push
      • query
      • remove
      • repository
      • revert
      • setowner
      • shelveset
      • show-find-objects
      • showacl
      • showcommands
      • showowner
      • showpermissions
      • support
      • switch
      • sync
      • trigger
      • tube
      • undelete
      • undo
      • undochange
      • undocheckout
      • undocheckoutunchanged
      • update
      • version
      • whoami
      • workspace
      • workspacestatus
      • xlink
    • CLI help
    • Pipe commands
    • cm find
    • Windows keyboard shortcuts
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

LOCK LIST

List locked items with the Unity Version Control CLI.
읽는 시간 3분
최근 업데이트: 10달 전

Description

Shows locks on a server.

Usage

cm lock list | ls [<revspec> [ ...]] [--server=<server>] [--repository] [--onlycurrentuser] [--onlycurrentworkspace] [--ignorecase] [--anystatus] [--machinereadable [--startlineseparator=<sep>] [--endlineseparator=<sep>] [--fieldseparator=<sep>] [--smartlocks]]

Options

Option / Argument

Description

--serverRepository server specification. This option will override the default server which is retrieved from the current workspace or the client.conf file. (Use 'cm help objectspec' to learn more about server specs.)
--repositoryRepository specification. This option will only list the locks of the specified repository. (Use 'cm help objectspec' to learn more about repository specs.)
--anystatusShows locks in any status (Locked or Retained). By default, only locks in Locked status are shown.
--onlycurrentuserFilters the results showing only the locks performed by the current user.
--onlycurrentworkspaceFilters the results showing only the locks performed on the current workspace (matching them by name).
--ignorecaseIgnores casing on the paths when a serverpath spec is used. With this flag, the command will work for "/src/foo.c" even if the user writes "/sRc/fOO.c".
--machinereadableOutputs the result in an easy-to-parse format.
--startlineseparatorUsed with the '--machinereadable' flag, specifies how the lines should start.
--endlineseparatorUsed with the '--machinereadable' flag, specifies how the lines should end.
--fieldseparatorUsed with the '--machinereadable' flag, specifies how the fields should be separated.
--smartlocksUsed with the '--machinereadable' flag, shows all the smart lock fields. Otherwise, it only shows the legacy locks fields. This parameter is needed to avoid breaking compatibility with older integrations / plugins that expect the old format.
revspecIf one or more are present, this command will display one lock line for each specified revision if its associated item is locked in the server. Otherwise, this command will list all locked items in the default server (or the one set with the '--server' option). Use a whitespace to separate the rev specs when using more than one. (Use 'cm help objectspec' to learn more about rev specs.)

Help

Remarks

The command will display a list of the currently locked items in the default server. It also accepts a list of revision specifications. In this case, only the locks belonging to the selected items will be displayed. A '--server=<server>' can be used to set the default server to query.

The command shows a line for every lock in the specified server

  • Repository of the locked item.
  • Item id of the locked item.
  • GUID of the locked item (this is only printed with the --machinereadable flag).
  • Date of the lock.
  • Destination branch where the lock will be released.
  • Revision id of the item loaded in the destination branch.
  • Holder branch where the lock was performed.
  • Revision id of the item that currently holds the lock.
  • Status of the lock (Locked or Retained)
  • User name who performed the lock.
  • Workspace name where the lock was performed.
  • Path of the locked item (server path format).
For the --machinereadable without the --smartlocks option, the printed fields are:
  • GUID of the locked item.
  • User name who performed the lock.
  • Workspace name where the lock was performed.
  • Path of the locked item (server path format).

Examples

cm lock list
cm lock list --server=myserver:8084
cm lock list --repository=repo@myserver:8084 --anystatus
cm lock ls serverpath:/src/foo.c#cs:99@default@localhost:8084
cm lock list revid:3521@default itemid:2381@secondary --onlycurrentuser
cm lock ls --onlycurrentuser
cm lock ls --onlycurrentuser --onlycurrentworkspace
cm lock list --machinereadable --startlineseparator=">" --endlineseparator="<" --fieldseparator=","
cm lock list --machinereadable --smartlocks --startlineseparator=">" --endlineseparator="<" --fieldseparator=","

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Description

      • Usage

      • Options

    • Help

      • Remarks

        • The command shows a line for every lock in the specified server

      • Examples


이 페이지의 문제 보고