- °³¿ä
- ¾ÖÇø®ÄÉÀÌ¼Ç ¼³Ä¡
- »ç¿ëÀÚ Ãß°¡ ¹× ±×·ì »ý¼º
- »ç¿ëÀÚ Ãß°¡/ÆÐ½º¿öµå ¼³Á¤
- ±×·ì ¼³Á¤
- º¸¾È ¼³Á¤
- µðÆÌ »ý¼º
- ÆÄÀÏ Å¸ÀÔ ¸ÅÇÎ ¼³Á¤
- ¿öÅ©½ºÆäÀ̽º ¼³Á¤
- ¿öÅ©½ºÆäÀ̽º »ý¼º
- ÃÖÃÊ ÀÓÆ÷Æ®
- Visual Studio ¹ÙÀεù º¯°æ
1 °³¿ä
2 ¾ÖÇø®ÄÉÀÌ¼Ç ¼³Ä¡
ÇÁ·Î±×·¥ ¼³Ä¡ ÀÚü´Â ¼Â¾÷ ÇÁ·Î±×·¥¿¡¼ ´Ù ÇØÁֱ⠶§¹®¿¡ µüÈ÷ °Çµå¸± °Ç ¾ø´Ù.
´Ù¸¸ ±âº»ÀûÀ¸·Î ±ò¸®´Â µð·ºÅ丮¿¡´Ù ±ò¸é ³ªÁß¿¡ P4ROOT ¼³Á¤ÇÏ´Â ºÎºÐ¿¡ ±ÍÂú¾ÆÁö´Ï±î, ÀúÀå¼Ò¸¦ µÑ µð·ºÅ丮¿¡´Ù ÇÁ·Î±×·¥À» ¼³Ä¡ÇÏÀÚ. ¿¹¸¦ µé¾î D:\Perforce µð·ºÅ丮¿¡´Ù ÀúÀå¼Ò¸¦ µÎ±â ¿øÇÑ´Ù¸é D:\Perforce¿¡´Ù ÇÁ·Î±×·¥À» ¼³Ä¡Ç϶ó´Â ¸»ÀÌ´Ù.
±×¸®°í ¿¡µðÅÍ Á¤µµ´Â ÀÚÁÖ »ç¿ëÇÏ´Â ¿¡µðÅÍ·Î º¯°æÇØ ÁÖÀÚ. °¢Á¾ ¼³Á¤ ÆÄÀÏ ÆíÁýÇÒ ¶§ ¹× ¼Ò½º º¼ ¶§¿¡µµ »ç¿ëÇÏ°Ô µÇ´Ï ³ëÆ®ÆÐµå ¸»°í ´Ù¸¥ °É ÀÌ¿ëÇÏ´Â °ÍÀÌ ÁÁ´Ù. ¹¹ ³ëÆ®ÆÐµå·Î ÇØµÖµµ, ¼³Ä¡ ¸¶Ä£ ÈÄ ·¹Áö½ºÆ®¸® º¯°æÇØÁÖ¸é µÇ´Ï º° »ó°üÀº ¾ø´Ù.
ÇÁ·Î±×·¥ ¼³Ä¡°¡ ³¡³µÀ¸¸é ¶óÀ̼¾½º ÆÄÀÏÀ» ÇÁ·Î±×·¥À» ¼³Ä¡ÇÑ µð·ºÅ丮¿¡´Ù Áý¾î³Ö¾îÁØ´Ù. ¶óÀ̼¾½º¸¦ Àû¿ëÇϱâ À§Çؼ´Â ÆÛÆ÷½º ¼ºñ½º¸¦ Àç½ÃÀÛÇØ¾ß ÇÑ´Ù. À©µµ¿ìÁîÀÇ °æ¿ì¿¡´Â sc Ä¿¸Çµå¸¦ ÀÌ¿ëÇÏ¸é µÈ´Ù.
sc stop Perforce
sc start Perforce
ÀÌÈĺÎÅÍÀÇ ÀÛ¾÷Àº ÆÛÆ÷½º µ¥¸óÀÌ ±ò¸° ÄÄÇ»ÅÍ ¸»°í ´Ù¸¥ ÄÄÇ»ÅÍ(ÆÛÆ÷½º Ŭ¶óÀÌ¾ðÆ®°¡ ±ò¸°...)¿¡¼ ÇØµµ »ó°ü¾ø´Ù.
3 »ç¿ëÀÚ Ãß°¡ ¹× ±×·ì »ý¼º
¿ØÁö ¸ð¸£°ÚÀ¸³ª, ÆÛÆ÷½º¿¡´Â °ü¸®ÀÚ¸¦ À§ÇÑ GUI°¡ ¾ø´Ù. ¸¸µå´Â °Å ±×·¸°Ô ¾î·Á¿ï °Í °°Áö ¾ÊÀºµ¥, »ó¿ëÀÌ¸é ±× Á¤µµ´Â ÇØÁà¾ßÇÏ´Â °Å ¾Æ´Ñ°¡? ÂÁ.
3.1 »ç¿ëÀÚ Ãß°¡/ÆÐ½º¿öµå ¼³Á¤
p4 user -f name
ÀÔ·ÂÇÏ¸é ¾Æ·¡¿Í °°Àº ¸ð¾çÀÇ ¿¡µðÅÍ Ã¢ÀÌ ¶ã °ÍÀÌ´Ù.
# A Perforce User Specification.
#
# User: The user's user name.
# Email: The user's email address; for email review.
# Update: The date this specification was last modified.
# Access: The date this user was last active. Read only.
# FullName: The user's real name.
# JobView: Selects jobs for inclusion during changelist creation.
# Password: If set, user must have matching $P4PASSWD on client.
# Reviews: Listing of depot files to be reviewed by user.
User: test
Email: test@Anima
FullName: test
À̸ÞÀϰú Ç®³×ÀÓÀ» ¼³Á¤ÇØÁØ´Ù. À§¿¡¼ º¸µíÀÌ ÆÐ½º¿öµåµµ ¹Ù·Î ¼³Á¤ÇÒ ¼ö Àִµ¥, ±ÍÂúÀ¸´Ï±î °¢°¢ÀÇ À¯Àú°¡ ¼³Á¤Ç϶ó°í ÇÏÀÚ. ÀÚ½ÅÀÇ ÆÐ½º¿öµå¸¦ ¼öÁ¤Çϱâ À§Çؼ´Â ÆÛÆ÷½º Ŭ¶óÀÌ¾ðÆ®¸¦ ±ò¾ÆÁØ ´ÙÀ½¿¡ ¾Æ·¡¿Í °°ÀÌ ÇÏ¸é µÈ´Ù.
p4 passwd
´Ù¸¥ »ç¶÷ÀÇ ÆÐ½º¿öµå¸¦ ¼öÁ¤Çϱâ À§Çؼ´Â ¾Æ·¡¿Í °°ÀÌ ÇÑ´Ù. ¾Æ¸¶ °ü¸®ÀÚ ±ÇÇÑÀÌ ÀÖ¾î¾ß ÇÒ °ÍÀÌ´Ù.
p4 passwd username
3.2 ±×·ì ¼³Á¤
±×·ìÀ» ¸¸µå´Â ÀÌÀ¯´Â ³ªÁß¿¡ º¸¸é ¾Ë°ÚÁö¸¸, »ç¿ëÀÚ º°·Î ±ÇÇÑ ¼¼ÆÃÀ» ÇÏ´Â ¹ø°Å·Î¿òÀ» ¾ø¾Ö±â À§ÇؼÀÌ´Ù. ÀÏ´Ü »õ·Î¿î ±×·ìÀ» »ý¼ºÇϱâ À§Çؼ´Â ´ÙÀ½°ú °°ÀÌ ÇÑ´Ù.
p4 group groupname
ÀÔ·ÂÇÏ¸é ¾Æ·¡¿Í °°Àº ¸ð¾çÀÇ ¿¡µðÅÍ Ã¢ÀÌ ¶ã °ÍÀÌ´Ù. (±×·ì À̸§À» programmers¶ó°í ÁÖ¾ú´Ù.)
# A Perforce Group Specification.
#
# Group: The name of the group.
# MaxResults: A limit on the results of operations for users in
# this group, or 'unlimited'. See 'p4 help maxresults'.
# MaxScanRows: A limit on the data scanned during operations for users
# in this group, or 'unlimited'. See 'p4 help maxresults'.
# Timeout: A time (in seconds) which determines how long a 'p4 login'
# session ticket remains valid (default is 12 hours).
# Subgroups: Other groups automatically included in this group.
# Users: The users in the group. One per line.
Group: programmers
MaxResults: unlimited
MaxScanRows: unlimited
Timeout: 43200
Subgroups:
Users:
excel96
test
Users Ç׸ñ¿¡´Ù ÇÊ¿äÇÑ »ç¿ëÀÚµéÀÇ ID¸¦ Áý¾î³Ö´Â´Ù.
4 º¸¾È ¼³Á¤
»ç¿ëÀÚ Ãß°¡°¡ ³¡³µ´Ù¸é ¾Æ·¡ÀÇ ¸í·É¾î¸¦ ÀÔ·ÂÇÑ´Ù.
p4 protect
# Perforce Protections Specification.
#
# Each line contains a protection mode, a group/user indicator, the
# group/user name, client host id and a depot file path pattern.
# A user gets the highest privilege granted on any line.
#
# Mode: The permission being granted. Each permission includes
# all the permissions above it, except for 'review'.
#
# list - users can see names but not contents of files;
# users can see all non-file related metadata
# (clients, users, changelists, jobs, etc.)
#
# read - users can sync, diff, and print files
#
# open - users can add, edit, delete, and integrate files
#
# write - users can submit open files
#
# super - allows access to the 'p4 protect' command
#
# review - allows access to the 'p4 review' command; implies
# read access
#
# Group/User indicator: either 'group' or 'user'.
#
# Name: A Perforce group or user name; may be wildcarded.
#
# Host: The IP address of a client host; may be wildcarded.
#
# Path: The part of the depot being granted access.
Protections:
# write user * * //...
write group programmers * //...
super user excel96 * //...
¸Ç ¾Æ·¡¿¡ º¸¸é
write user * * //...
ºÎºÐÀ» ÁÖ¼® ó¸®Çϰí,
write group programmers * //...
¶ó°í Ãß°¡ÇسõÀº ºÎºÐÀÌ Àִµ¥, ÀÌ°Ô ¹«½¼ ¶æÀÌ³Ä ÇÏ¸é ¿ø·¡ °ÍÀº ¸ðµç »ç¿ëÀÚ°¡ ¸ðµç ÆÄÀÏ¿¡ ´ëÇØ ÀÐ°í ¾²±â ±ÇÇÑÀ» °¡Áø´ÙÀ̰í, ¾Æ·¡¿¡ ÀÖ´Â °ÍÀº programmers ±×·ì¿¡ ÀÖ´Â »ç¿ëÀÚ´Â ¸ðµç ÆÄÀÏ¿¡ ´ëÇØ ÀÐ°í ¾²±â ±ÇÇÑÀ» °¡Áø´ÙÀÌ´Ù.
5°³ÀÇ Çʵ尡 °¡Áö´Â Àǹ̴ ¸Ç ¾ÕºÎÅÍ Â÷·Ê·Î ±ÇÇÑ, »ç¿ëÀÚ/±×·ì, »ç¿ëÀÚ/±×·ì À̸§, Á¢¼Ó ÁÖ¼Ò, ÀúÀå¼Ò °æ·Î¸¦ ÀǹÌÇÑ´Ù. '*' ¹®ÀÚ´Â ¸ðµç »ç¿ëÀÚ/±×·ìÀ» ÀǹÌÇϰí, '...' ¹®ÀÚ¿Àº ¸ðµç ÆÄÀÏÀ» ÀǹÌÇÑ´Ù. ÆÛÆ÷½º¿¡¼ '//' ¹®ÀÚ¿Àº ÀúÀå¼Ò ·çÆ®¸¦ ÀǹÌÇϹǷÎ, '//...' ¹®ÀÚ¿Àº ÀúÀå¼Ò¿¡ Á¸ÀçÇÏ´Â ¸ðµç ÆÄÀÏÀ» ³ªÅ¸³½´Ù.
5 µðÆÌ »ý¼º
±âº»ÀûÀ¸·Î ¼³Ä¡½Ã¿¡ depot À̶ó´Â À̸§ÀÇ µðÆÌÀÌ »ý¼ºµÇ´Âµ¥, ¿©·¯ °¡Áö·Î È¥¶õÀ» ºÒ·¯ÀÏÀ¸Å°¹Ç·Î »èÁ¦ÇØ ¹ö¸®ÀÚ.
p4 depot -d depot
±× ´ÙÀ½ ½ÇÁ¦·Î »ç¿ëÇÒ µðÆÌÀ» »ý¼ºÇÑ´Ù.
p4 depot AnimaFiles
6 ÆÄÀÏ Å¸ÀÔ ¸ÅÇÎ ¼³Á¤
ÆÛÆ÷½º´Â ÆÄÀÏ ¾ÕÂÊÀÇ 8192¹ÙÀÌÆ®¸¦ Àоî¼, À̵éÀÇ MSB°¡ ¸ðµÎ 0À̸é ÅØ½ºÆ® ÆÄÀÏ·Î ÀνÄÀ» ÇÑ´Ù. ¹®Á¦´Â ¹ÙÀ̳ʸ® ÆÄÀϵµ ¿ì¿¬È÷ ÅØ½ºÆ® ÆÄÀÏ·Î ÀÎ½ÄµÉ ¼ö ÀÖ´Ù´Â Á¡. ±× ¹Ý´ëµµ ´ç¿¬È÷ °¡´ÉÇÒ Å×°í. ÇÑ±Û ¾Æ½ºÅ° ÆÄÀÏÀº MSB°¡ 1ÀÌÁö ¾Ê³ª? ¹¹ ¾î·µç ÀÌ·± ¿À·ù¸¦ ÇÇÇϱâ À§ÇØ È®ÀåÀÚ¿¡ µû¶ó ¾î¶² ŸÀÔÀ¸·Î ÀνÄÇÒ °ÍÀÎÁö¸¦ ¹Ì¸® ÁöÁ¤Çصδ °ÍÀÌ ÁÁ´Ù.
p4 typemap
# Perforce File Type Mapping Specifications.
#
# TypeMap: a list of filetype mappings; one per line.
# Each line has two elements:
#
# Filetype: The filetype to use on 'p4 add'.
#
# Path: File pattern which will use this filetype.
#
# See 'p4 help typemap' for more information.
TypeMap:
text //....h
text //....c
text //....hpp
text //....cpp
text //....hxx
text //....cxx
text //....hh
text //....cc
text //....asp
binary+F //....avi
binary //....bmp
binary //....btr
text //....cnf
text //....css
binary //....doc
binary //....dot
binary+w //....exp
binary+F //....gif
text //....htm
text //....html
binary //....ico
text //....inc
text+w //....ini
binary //....jpg
text //....js
binary+w //....lib
text+w //....log
binary+F //....mpg
binary //....pdf
text+w //....pdm
binary //....ppt
binary //....xls
binary+F //....zip
7 ¿öÅ©½ºÆäÀ̽º ¼³Á¤
À½. ÀÌ°Ç Ä¿¸Çµå ¶óÀο¡¼ Çϱ⺸´Ù´Â VisualStudio ¾ÈÀ̳ª, p4v GUI¸¦ ÁÖ·Î ÀÌ¿ëÇÏ°Ô µÇ´Âµ¥...
7.1 ¿öÅ©½ºÆäÀ̽º »ý¼º
ÀÏ´Ü ¹º°¡ ÀÛ¾÷À» Çϱâ À§Çؼ´Â ¿öÅ©½ºÆäÀ̽º°¡ ÀÖ¾î¾ß ÇÑ´Ù. ¿öÅ©½ºÆäÀ̽º´Â SubversionÀÇ ÀÛ¾÷º»(working copy) °°Àº °³³äÀÌ´Ù.
p4 workspace workspace_name
¿öÅ©½ºÆäÀ̽º À̸§À» Anima·Î ÁÖ¾ú´Ù.
# A Perforce Client Specification.
#
# Client: The client name.
# Update: The date this specification was last modified.
# Access: The date this client was last used in any way.
# Owner: The user who created this client.
# Host: If set, restricts access to the named host.
# Description: A short description of the client (optional).
# Root: The base directory of the client workspace.
# AltRoots: Up to two alternate client workspace roots.
# Options: Client options:
# [no]allwrite [no]clobber [no]compress
# [un]locked [no]modtime [no]rmdir
# LineEnd: Text file line endings on client: local/unix/mac/win/share.
# View: Lines to map depot files into the client workspace.
#
# Use 'p4 help client' to see more about client views and options.
Client: Anima
Update: 2006/08/25 10:09:38
Access: 2006/08/25 10:31:57
Owner: excel96
Host: cjintern-ff066f
Description:
Created by excel96.
Root: d:\Project\Anima
Options: noallwrite noclobber nocompress unlocked nomodtime normdir
LineEnd: local
View:
//AnimaFiles/... //Anima/...
¿©±â¼ ¼¼ÆÃÇØÁà¾ß ÇÏ´Â °ÍÀº Root Ç׸ñ¿Í View Ç׸ñÀÌ´Ù. Root´Â ¿öÅ©½ºÆäÀ̽º°¡ µé¾î°¥ µð·ºÅ丮¸¦ ¸»Çϰí, View´Â µðÆÌ¿¡ ÀÖ´Â ÆÄÀϵéÀ» ¿öÅ©½ºÆäÀ̽º, Áï ·ÎÄà ÆÄÀÏ ½Ã½ºÅÛ¿¡´Ù ¾î¶»°Ô ¸ÅÇνÃų °ÍÀΰ¡¸¦ ÀǹÌÇÑ´Ù. Options Ç׸ñµµ ¹º°¡ Áß¿äÇÑ °Í °°±â´Â Çѵ¥, ÀÏ´ÜÀº ±âº» ¼¼ÆÃÀ¸·Î °í°í.
7.2 ÃÖÃÊ ÀÓÆ÷Æ®
ÀÏ´Ü ÃÖÃÊÀÇ ÇÁ·ÎÁ§Æ®¸¦ ÀÓÆ÷Æ®½ÃÄÑÁà¾ß ÇÑ´Ù. ÀÛ¾÷ ÁßÀÌ´ø ÇÁ·ÎÁ§Æ® µð·ºÅ丮¿¡¼ ÇÊ¿ä¾ø´Â ÆÄÀÏµé ½Ï Áö¿ì°í, À§¿¡¼ ¼³Á¤ÇÑ ¿öÅ©½ºÆäÀ̽º ¾ÈÀ¸·Î º¹»çÇÑ´Ù. ±× ´ÙÀ½ p4v¸¦ ½ÇÇàÇÑ´Ù.
·Î±×ÀÎÇÒ ¶§, ¹æ±Ý »ý¼ºÇÑ ¿öÅ©½ºÆäÀ̽ºÀÇ À̸§À» Àû¾îÁØ´Ù.
¿öÅ©½ºÆäÀ̽º ÅÇ ÃÖ»óÀ§ µð·ºÅ丮¿¡¼ Mark For Add ¸í·É¾î¸¦ ½ÇÇàÇØÁØ´Ù.
¾ÕÂÊ¿¡ + Ç¥½Ã°¡ µÈ °ÉÀ» º¼ ¼ö ÀÖ´Ù. ÀÌ°É Ä¿¸Çµå â¿¡¼ ÇÏ·Á¸é ²Ï ±ÍÂú´Ù.
¿ØÁö´Â ¸ð¸£°ÚÁö¸¸, p4v ¾È¿¡¼´Â ¸ðµç ÇÏÀ§ µð·ºÅ丮¿¡ ÀÖ´Â ÆÄÀϵéÀ» ¼ºê¹ÔÇÒ ¼ö ÀÖ´Â ¸Þ´º°¡ ¾ø´Ù. Ä¿¸Çµå âÀ» ¶ç¿ö¼ ¼ºê¹ÔÇÑ´Ù.
p4v submit
# A Perforce Change Specification.
#
# ...»ý·«...
Change: new
Client: Anima
User: excel96
Status: new
Description:
¿©±â´Ù ¹º°¡ ¼³¸íÀ» Àû¾îÁØ´Ù.
Files:
//AnimaFiles/Documents/bin/doxygen.exe # add
...»ý·«...
´Ù¸¥ ÄÄÇ»ÅÍ¿¡¼ ÀÌ ÆÄÀϵéÀ» ¹Þ¾Æ¿À±â À§Çؼ´Â ¿öÅ©½ºÆäÀ̽º¸¦ µ¿ÀÏÇÑ °úÁ¤À¸·Î »ý¼ºÇÑ ´ÙÀ½ ¾Æ·¡ÀÇ ¸í·É¾î¸¦ ÀÔ·ÂÇÏ¸é µÈ´Ù.
p4 sync -f
p4v ¾È¿¡¼´Â ¿ØÁö ÆÄÀÏÀ» °Á¦·Î °¡Á®¿À±â°¡ µÇÁö ¾Ê´Â °Í °°´Ù. ¾ÆÁ÷ ¸¹ÀÌ »ç¿ëÇØº¸Áú ¾Ê¾Æ¼ ¸ð¸£´Â °ÉÁöµµ.
7.3 Visual Studio ¹ÙÀεù º¯°æ
¿öÅ©½ºÆäÀ̽º¸¦ ¼³Á¤ÇÑ ´ÙÀ½, Visual Studio ¾ÈÀ¸·Î µé¾î°¡º¸¸é, ¹ÙÀεù ¼³Á¤ÀÌ µÇ¾îÀÖÁö ¾ÊÀº °É ¾Ë ¼ö ÀÖ´Ù.
¸ðµç ÇÁ·ÎÁ§Æ®¸¦ ¼±ÅÃÇÑ ´ÙÀ½, ¹ÙÀεåÇØÁØ´Ù. p4v ·Î±×ÀΠâÀÌ ¶ã °ÍÀε¥, ÆÐ½º¿öµå ÀÔ·ÂÇϰí, ¿öÅ©½ºÆäÀ̽º Á¦´ë·Î µÇÀÖ´ÂÁö È®Àθ¸ ÇÏ¸é µÈ´Ù.
SeriousMoin v1 (koMoinMoin 1.0a4 Modified)