Personal tools

Darcs

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Changes)
m (Unknown items)
Line 16: Line 16:
 
*'''creating a item''': these will be "unknown".
 
*'''creating a item''': these will be "unknown".
   
*<tt>darcs add</tt>: turns an unknown item into an change
+
*<tt>darcs add</tt>: turns an unknown item into a change
   
 
*<tt>darcs remove</tt>: creates an change to remove the item but keeps it as an unknown item.
 
*<tt>darcs remove</tt>: creates an change to remove the item but keeps it as an unknown item.

Revision as of 00:43, 21 August 2006

darcs is a peer-to-peer revision control system, written in Haskell.

Contents

1 Understanding darcs

You can think of a darcs repository as containing these things:

  • Patches: a patch is a collection of changes that forms the unit of synchronisation with other repositories
  • Unrecorded changes to known files and directories
  • Unknown items (files and directories)
  • Boring items: anything with a name matched in _darcs/prefs/boring

2 Operations

2.1 Unknown items

  • creating a item: these will be "unknown".
  • darcs add: turns an unknown item into a change
  • darcs remove: creates an change to remove the item but keeps it as an unknown item.
  • darcs whatsnew -l: show changes and unknown items

2.2 Changes

  • removing an item: creates a change to remove the item
  • editing a file adds to the edit to the changes
  • darcs whatsnew: show changes
  • darcs mv: create a change to move an item
  • darcs replace: create a change to replace text in a file
  • darcs record: record changes as a patch

2.3 Patches

  • darcs pull: get patches from another repository
  • darcs push: put patches in another repository
  • darcs apply: get patches from an email bundle

2.4 Repositories

  • darcs initialize: create a new empty repository
  • darcs get: create a new empty repository and get patches from another repository

3 External link