Bazaar
(Redirected from Bzr)
Jump to navigation
Jump to search
Install
Install package bzr for main commands:
sudo apt install bzr
Install package bzrtools for additional commands like bzr patch
, bzr cdiff
(colored diff).
sudo apt install bzrtools
How-to
Clone a project
The following will clone the gtk3
branch of terminator
repository into a directory named gtk3/.
bzr branch lp:terminator/gtk3
Apply a named patch
Apply a patch from a file. This requires package bzrtools.
bzr patch terminator-1520377-stale-tab-title.patch
A typical patch looks like:
=== modified file 'terminatorlib/paned.py'
--- terminatorlib/paned.py 2015-11-07 00:21:05 +0000
+++ terminatorlib/paned.py 2015-11-26 23:15:33 +0000
@@ -263,9 +263,9 @@
metadata = None
parent = self.get_parent()
+ parent.remove(self)
metadata = parent.get_child_metadata(self)
dbg('metadata obtained for %s: %s' % (self, metadata))
- parent.remove(self)
self.cnxids.remove_all()
parent.add(sibling, metadata)
sibling.grab_focus()