~hbcoders/easybreezy/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Bzr / Brz actions for non-technical users

A set of actions, primarily for Linux Mint (and eventually, Windows actions) giving 
right-click access to the more common bzr / brz (Bazaar /Breezy) actions in Nemo or
Thunar (XFCE).

Intended for use by *non-techincal staff*. 

It assumes that:-

 * There is a single central repository
 * It is accessed via bzr+ssh

The actions are bash scripts. You might need to mark the *.sh scripts as executable.

For Nemo, put the files into ~/.local/share/nemo/actions

For Thunar, put the files into ~.config/Thunar
For Thunar, courtesy of the uca.xml file, you'll have to run the ./install_to_thunar script.
This will copy the contents of the easybreezythunar.xml into the uca.xml file and backup
the original file.


Requirements:
 * "bzr qcheckout-ala-explorer" is used (so bzr-explorer is required as it supplies it).
 * qbzr
 * sshpass is also used.
 * zenity (usually already installed)


You should save a copy of bzrdefaults-README.txt as bzrdefaults and put in your own settings.

The NotUsed folder contains a number of actions that are, surprisingly, not used by default.
Copy them to the actions directory if you need them / your users need them.

Note that the directory in which the right-click is launched must contain a .bzr directory.
This is because you might have nested directories (controlled directories under a controlled directory).

One option is, for an easybreezy-setup program to allow choosing from a series of entries
(with nickname) in the bzrdefaults file:-

[Standard]
defaultrepo="localhost"
defaultport="22"
defaultrepodirbase="~/Documents"

[Other]
defaultrepo="otherhost.example.com"
defaultport="5750"
defaultrepodirbase="/home/repos"

 yad --form --field="Repositories:CB" "^Standard Repo\!Other Repo"
 (N.B. not sure if YAD is necessary)
 
 
 The alternative is a full dialogue. Not so keen on this, but it might be useful for adding an entry.
 yad --form --field="Repository" "wibble" --field="Port:NUM" 8999 --field="Path" "/home/rjl" --title="Repository Settings" --float-precision=0

As ezbrz_otherrepos is ignored, it would be possible to source-control it as well, for a company-wide group of repos.