Simple bzr command.
--- a/bzr.rst Thu Jan 20 12:35:19 2011 +0200
+++ b/bzr.rst Sun Jan 23 23:36:47 2011 +0200
@@ -1,6 +1,29 @@
-*- mode: outline -*-
-* Cloning repo.
+* Import existing/init new project.
+
+ $ mkdir proj
+ $ cd proj
+ $ touch README Makefile main.c
+ $ bzr init
+Created a standalone tree (format: 2a)
+ $ bzr add .
+adding Makefile
+adding README
+adding main.c
+ $ bzr ci -m 'Init proj.'
+Committing to: /cygdrive/e/home/devel/tmp/vcs-bzr/proj/
+added Makefile
+added README
+added main.c
+Committed revision 1.
+
+* Cloning/branching repo.
+
+'branch'/'get'/'clone' are aliases for 'branch' command:
+
+ $ bzr clone proj/ proj-clone
+Branched 1 revision(s).
* Updating repo.
@@ -8,3 +31,66 @@
$ bzr missing bzr://bzr.example.com/proj/trunk
+* Working copy status.
+
+'status'/'st'/'stat' are aliases for 'status' command:
+
+ $ bzr rm README
+deleted README
+ $ bzr st
+removed:
+ README
+
+* Adding files to repo.
+
+ $ touch hello.c
+ $ bzr add hello.c
+adding hello.c
+
+* Deleting files from repo.
+
+'remove'/'rm'/'del' are aliases for 'remove' command:
+
+ $ bzr rm README
+deleted README
+
+* Undo local changes.
+
+ $ bzr rm README
+deleted README
+ $ bzr revert README
++N README
+
+* Undo last commit.
+
+ $ bzr add hello.c
+adding hello.c
+
+ $ bzr ci -m bug
+Committing to: /cygdrive/e/home/devel/tmp/vcs-bzr/proj-clone/
+added hello.c
+Committed revision 2.
+
+ $ bzr uncommit
+Are you sure? [y/n]: y
+ 2 Oleksandr Gavenko 2011-01-23
+ bug
+
+The above revision(s) will be removed.
+You can restore the old tip by running:
+ bzr pull . -r revid:gavenkoa@gmail.com-20110123213425-f2ca8umip5iw73is
+
+ $ bzr st
+added:
+ hello.c
+
+* Info about bzr repo.
+
+ $ bzr info
+Standalone tree (format: 2a)
+Location:
+ branch root: .
+
+Related branches:
+ parent branch: /cygdrive/e/home/devel/tmp/vcs-bzr/proj
+