기술 자료

​
​

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
      • 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)

OBJECTSPEC

Get information on how to build object specifications with the Unity Version Control CLI.
읽는 시간 3분
최근 업데이트: 10달 전

Description

Describes how to write object specs.

Usage

cm objectspec
(To get all the information about how to build object specs.)

Help

Several UVCS commands expect 'object specs' as input to refer to a given object (typically a branch, changeset, repository, etc).
This documentation describes the different "specs" available and how to build them.
Each spec type begins with a unique tag, for example "rep:" or "cs:". The tag must be specified for commands that take a general object spec, for example "cm setowner object_spec", but can often be omitted for commands that take only a single type of spec, for example, "cm getfile revision_spec".

Repository server spec (repserverspec)

repserver:name:port

Examples

cm repo list repserver:skull:8084
cm repo list skull:8084

Side note

We call it 'repository server spec', instead of just 'server spec' for historical reasons. Long ago, we had separate workspace and repository servers, and the naming survived.

Repository spec (repspec)

rep:rep_name@[repserverspec]

Examples

cm showowner rep:codice@localhost:6060
(Here the "rep:" is required because showowner admits not only repos but also other types of objects. So it needs the user to indicate the object type.)

Branch spec (brspec)

br:[/]br_name[@repspec]

Examples

cm switch br:/main@rep:plastic@repserver:skull:9095
(In this case "br:", "rep" and "repserver" are not needed, so the command admits a much shorter form: "cm switch main@plastic@skull:9095".)
cm find revisions "where branch='br:/main/task001'"

Remark

The initial '/' on the branch is not mandatory. We used to specify all our branches as /main, /main/task001, and so on. But now, we prefer the shorter form main, main/task001 which makes commands more compact.

Changeset spec (csetspec)

cs:cs_number|cs_guid[@repspec]
The number or GUID of the changeset can be specified.

Examples

cm ls /code --tree=ae1390ed-7ce9-4ec3-a155-e5a61de0dc77@code@skull:7070

Label spec (labelspec)

lb:lb_name[@repspec]

Examples

cm switch lb:RELEASE2.0
cm switch lb:RELEASE1.4@myrep@MYSERVER:8084

Revision spec

There are different types of rev specs

  • rev: item_path[#(brspec|csetspec|labelspec)]
  • rev: serverpath:item_path#(brspec|cset_spec|lb_spec)
  • rev: revid:rev_id[@rep_spec]
  • rev: itemid:item_id#(br_spec|cset_spec|lb_spec)

Examples

cm diff rev:readme.txt#cs:19 rev:readme.txt#cs:20
cm diff serverpath:/doc/readme.txt#cs:19@myrepo serverpath:/doc/readme.txt#br:/main@myrepo@localhost:8084
cm cat revid:1230@rep:myrep@repserver:myserver:8084

Item spec

There are different types of item specs

  • item: item_path
  • item: itemid:item_id[@rep_spec]

Examples

cm lock unlock item:audio.wav
cm lock unlock itemid:1234@rep:myrep@repserver:myserver:8084

Attribute spec

att:att_name[@repspec]

Example

cm attribute set att:merged@code@doe:8084 cs:25@code@doe:8084 done

Shelve spec

sh:sh_number[@repspec]

Example

cm diff sh:2 sh:4

Workspace specs

wk:name@clientmachine
Rarely used, since they only apply to workspace related commands. Useful to specify the workspace by name and machine instead of path.

Examples

cm showselector wk:codebase@modok

Side note

These specs come from the old days of Plastic SCM 2.x where 'workspace servers' existed as a way to store workspace metadata in a centralized way. Were deprecated due to performance issues.

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

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

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

  • 보고 있는 페이지
    • Description

      • Usage

    • Help

      • Repository server spec (repserverspec)

        • Examples

        • Side note

      • Repository spec (repspec)

        • Examples

      • Branch spec (brspec)

        • Examples

        • Remark

      • Changeset spec (csetspec)

        • Examples

      • Label spec (labelspec)

        • Examples

      • Revision spec

        • There are different types of rev specs

        • Examples

      • Item spec

        • There are different types of item specs

        • Examples

      • Attribute spec

        • Example

      • Shelve spec

        • Example

      • Workspace specs

        • Examples

        • Side note


이 페이지의 문제 보고