Source control: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(15 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[http://internetpoker.sinkhead.info/ internet poker] [http://thingstodowith.desdee.info/ things to do with children london] [http://sexblack.coolish.info/ sex black] [http://cialisonline.stratose.info/ cialis online] [http://realestategreece.desdee.info/ real estate greece] [http://footle.info/index8_1000.html index] [http://theusedblueand.skunkish.info/ the used blue and yellow] [http://captopril.shippon.info/ captopril] [http://europeanconference.sinkhead.info/ european conference 2005] [http://ihateloveicons.shippon.info/ i hate love icons] [http://discountbedding.injelly.info/ discount bedding] [http://mardigrass2005.sinkhead.info/ mardigrass 2005] [http://nfsunderground.skunkish.info/ nfs underground 2 pc controls] [http://servicemagazine.desdee.info/ service magazine] [http://swimsuit.stratose.info/ swimsuit] [http://toolpouchphone.injelly.info/ tool pouch phone] [http://toyotaavalon.desdee.info/ toyota avalon] [http://cyclobenzaprine.coolish.info/ cyclobenzaprine online] [http://londonpubmenus.shippon.info/ london pub menus] [http://arkansasplumbing.sinkhead.info/ arkansas plumbing code] [http://supremecourt.stratose.info/ supreme court justice vote] [http://dvddecoders.sinkhead.info/ dvd decoders] [http://istanbul.injelly.info/ istanbul] [http://fridaysbra.footle.info/ fridays bra] [http://acneclearnatural.skunkish.info/ acne clear natural medicine] [http://filesharing.stratose.info/ file sharing] [http://marsphotograph.stratose.info/ mars photograph planet] [http://buyadipex.sinkhead.info/ buy adipex] [http://platonicthought.injelly.info/ platonic thought] [http://golf.shippon.info/ golf] [http://angelasheyparker.stratose.info/ angel ashey parker] [http://wallshelfunits.sinkhead.info/ wall shelf units] [http://internetdatingscams.footle.info/ internet dating scams] [http://woodpistolcase.footle.info/ wood pistol case] [http://newbalanceoutlet.coolish.info/ new balance outlet] [http://longevansrat.sinkhead.info/ long evans rat] [http://nokia7710.skunkish.info/ nokia 7710] [http://freesex.whacks.info/ free sex] [http://starcraftdownload.desdee.info/ starcraft download full] [http://golfclubsetreview.stratose.info/ golf club set review] [http://shippon.info/index2_250.html map] [http://pageblanchesquebec.skunkish.info/ page blanches quebec] [http://lookmanpornwhy.sinkhead.info/ look man porn why] [http://freemp3filesdownloads.footle.info/ free mp3 files downloads] [http://workspecifications.footle.info/ work specifications] [http://nomoretearstablature.desdee.info/ no more tears tablature] [http://jacksonlaboratory.coolish.info/ jackson laboratory mouse] [http://countryhome.desdee.info/ country home designs] [http://whacks.info/index3_1000.html url] [http://onlinedictionary.sinkhead.info/ online dictionary of symbol] [http://teensex.betrunk.info/ teen sex] [http://powerpointtutorial.stratose.info/ powerpoint tutorial] [http://chanelbags.desdee.info/ chanel bags] [http://pharmacist.stratose.info/ pharmacist] [http://newyorkweight.shippon.info/ new york weight loss spa] [http://recipe.injelly.info/ recipe] [http://caloriecounter.desdee.info/ calorie counter] [http://hennadesign.shippon.info/ henna design] [http://motorcycles.betrunk.info/ motorcycles for sale] [http://1978bodyfordpart.skunkish.info/ 1978 body ford part truck] [http://ativaninfo.sinkhead.info/ ativan info] [http://usedmechanics.betrunk.info/ used mechanics truck] [http://microsoftwindows.desdee.info/ microsoft windows xp] [http://philippinesand.desdee.info/ philippines and cyprus] [http://languageschool.stratose.info/ language school] [http://freeuscellular.stratose.info/ free us cellular ringtones] [http://mazdamiata.desdee.info/ mazda miata] [http://betrunk.info/index6_666.html url] [http://loureedcover.skunkish.info/ lou reed cover] [http://footle.info/index5_666.html map] [http://2005incometax.whacks.info/ 2005 income tax estimator] [http://inschoolsuspension.desdee.info/ in school suspension] [http://taxfreeshopping.whacks.info/ tax free shopping new york city 2005] [http://warforterritory.desdee.info/ war for territory lyrics] [http://mitsubishievo.injelly.info/ mitsubishi evo 4 pics] [http://animemoviedvd.betrunk.info/ anime movie dvd] [http://ephedrineonline.footle.info/ ephedrine online] [http://chanelpurses.injelly.info/ chanel purses] [http://hvacequipment.stratose.info/ hvac equipment] [http://libraryofspeech.shippon.info/ library of speech language pathology] [http://acryliccovertable.skunkish.info/ acrylic cover table] [http://homebasednursing.injelly.info/ home based nursing jobs] [http://federaljob.injelly.info/ federal job] [http://femalemodels.shippon.info/ female models] [http://estatelistingorlando.whacks.info/ estate listing orlando real] [http://yamahamotorcycle.shippon.info/ yamaha motorcycle part] [http://madridcentro.coolish.info/ madrid centro] [http://womancomesoutof.desdee.info/ woman comes out of coma] [http://autoassaultgame.shippon.info/ auto assault game] [http://suggestivethemes.skunkish.info/ suggestive themes] [http://makemeachannel.injelly.info/ make me a channel of your piece] [http://overundershotgun.desdee.info/ over under shotgun comparison] [http://mastercardwebsite.skunkish.info/ master card web site] [http://usedpickuptrucks.skunkish.info/ used pickup trucks] [http://lotuselise.whacks.info/ lotus elise] [http://onlinebaccarat.stratose.info/ online baccarat] [http://nsrentalvacation.skunkish.info/ ns rental vacation] [http://olderpeoples.shippon.info/ older peoples strategy] [http://photographicworkshop.coolish.info/ photographic workshop] [http://gangbangs.sinkhead.info/ gangbangs]
{{DISPLAYTITLE:Introduction to Source Control}}
{{Stub}}
[http://en.wikipedia.org/wiki/Revision_control Source control] refers to a
management system that helps control how information changes. For example, a
source control system might be used in a software project to help mitigate some
of the hazards of having developers work in parallel or to provide easy
roll-back and branching functionality (for when development decides to go in  
another direction).


Source control is a process where different versions of code are merged into a single codebase.  
 
The remainder of this article gives a brief introduction to source control and
talks a little about the Source SDK relevant issues.
 
 
== Overview ==
 
A software source control system will typically manage a collection of files and
directories, which we will call ''items''. It often associates such a
collection with something called a ''repository''. You can think of a repository
as something like a warehouse where all your code is "bagged-and-tagged".
 
 
As a user makes changes, such as adding, removing, and modifying items, the
system will monitor the changes and provide this information in a ''status''
report. When a user is satisfied with the changes they have made and with the
status, they can ''commit'' their changes to the repository. A user will
typically provide a short description of the collection of changes that they are
committing during the commit process. These messages, along with their
corresponding ''revision numbers'', can be viewed in the repository's ''log''.
 
 
Revision numbers provide an easy way to refer to the repository at an earlier
point in time. The repository can be restored to an earlier revision, called a
''roll-back''. A separate path of development can be created in the same
repository at a given revision, called a ''branch''. Branches can be
consolidated together or with a central development ''trunk'' by ''merging''
them. A repository can be copied and made independent up to a given revision,
called a ''fork''. Also, differences in files can be inspected by referencing
revision numbers.
 
== Technology ==
 
Common systems today operate in a client-server or peer-to-peer way. These
systems typically provide networked functionality. Many may also be operated
offline and/or in a completely local capacity. Local only solutions do exist,
though the core technology is typically older. For more detail, see
[http://en.wikipedia.org/wiki/Revision_control wikipedia].
 
 
== Source SDK ==
 
Valve will periodically update the Source SDK code base. This may or may not
introduce conflicts with mod projects that have already modified code that
was updated. Source control doesn't make these conflicts magically disappear,
but they do provide a powerful way to deal with these issues in a safe and
controlled manner.
 
 
<u>'''It is strongly recommended and encouraged that mod developers use source control in their projects.'''</u>
 
 
Valve uses Perforce as their source control solution. Other common solutions are Git, Hg (Mercurial), and SVN (Subversion), just to name a few. The
following are more detailed articles on using a particular source control
technology to manage a Source SDK project.
 
 
=== Getting Started ===
 
* [[Using Source Control with the Source SDK|Using Perforce for Source Control with the Source SDK]] (This is the original getting started guide)
* [[Using Subversion for Source Control with the Source SDK]]
* [[Using Git for Source Control with the Source SDK]]


== See also ==
== See also ==
* [[Diff And Patch]]
* [[Diff And Patch]]
* [[Using Source Control with the Source SDK]]


[[Category:Glossary]]
 
[[Category:Programming]]
<!-- This comment is 80 characters wide. -------------------------------------->

Latest revision as of 16:22, 10 April 2023

Source control refers to a management system that helps control how information changes. For example, a source control system might be used in a software project to help mitigate some of the hazards of having developers work in parallel or to provide easy roll-back and branching functionality (for when development decides to go in another direction).


The remainder of this article gives a brief introduction to source control and talks a little about the Source SDK relevant issues.


Overview

A software source control system will typically manage a collection of files and directories, which we will call items. It often associates such a collection with something called a repository. You can think of a repository as something like a warehouse where all your code is "bagged-and-tagged".


As a user makes changes, such as adding, removing, and modifying items, the system will monitor the changes and provide this information in a status report. When a user is satisfied with the changes they have made and with the status, they can commit their changes to the repository. A user will typically provide a short description of the collection of changes that they are committing during the commit process. These messages, along with their corresponding revision numbers, can be viewed in the repository's log.


Revision numbers provide an easy way to refer to the repository at an earlier point in time. The repository can be restored to an earlier revision, called a roll-back. A separate path of development can be created in the same repository at a given revision, called a branch. Branches can be consolidated together or with a central development trunk by merging them. A repository can be copied and made independent up to a given revision, called a fork. Also, differences in files can be inspected by referencing revision numbers.

Technology

Common systems today operate in a client-server or peer-to-peer way. These systems typically provide networked functionality. Many may also be operated offline and/or in a completely local capacity. Local only solutions do exist, though the core technology is typically older. For more detail, see wikipedia.


Source SDK

Valve will periodically update the Source SDK code base. This may or may not introduce conflicts with mod projects that have already modified code that was updated. Source control doesn't make these conflicts magically disappear, but they do provide a powerful way to deal with these issues in a safe and controlled manner.


It is strongly recommended and encouraged that mod developers use source control in their projects.


Valve uses Perforce as their source control solution. Other common solutions are Git, Hg (Mercurial), and SVN (Subversion), just to name a few. The following are more detailed articles on using a particular source control technology to manage a Source SDK project.


Getting Started

See also