[PATCH 00/12] A series of command-related updates
by Daniel Silverstone
This patch series adds various commands and subcommands and rearranges things a
little to make them work well.
In brief, we add fsck, user rename, group rename and readme set. In doing so
we rearrange some commands into repocommand and update the
generate_confirmation token to support customisation based on what operation is
being confirmed.
There should be nothing controversial here, although it does add a few extra
defines to the default set, they're not essential if only gitano-admin is going
to administer the repository.
Daniel Silverstone (12):
REPOCOMMAND: Shunt gc and count-objects to gitano.repocommand
REPOCOMMAND: Add fsck command
REPOSITORY: Allow tokens to be customised with notes
ADMINCOMMAND: Add user rename command
ADMINCOMMAND: Fix user delete for group membership
ADMINCOMMAND: Add group rename
ADMINCOMMAND: Fix group del to remove subgroup membership
COMMANDS: Add reasons to generate_confirmation calls
SKEL: Update defines for rename commands
REPOSITORY: Add set_readme method.
COMMAND: Add readme set subcommand
SKEL: Add setreadme to the operational defines.
Makefile | 3 +-
lib/gitano/admincommand.lua | 119 ++++++++++++++++++++++++++++++----
lib/gitano/command.lua | 112 +++++++++++++-------------------
lib/gitano/repocommand.lua | 89 +++++++++++++++++++++++++
lib/gitano/repository.lua | 24 ++++++-
skel/gitano-admin/rules/defines.lace | 9 ++-
6 files changed, 268 insertions(+), 88 deletions(-)
create mode 100644 lib/gitano/repocommand.lua
--
1.7.10.4
10 years, 3 months
[PATCH 0/9] Add a copy command
by Richard Maw
Repository: ssh://gitano@gitano.org.uk/personal/richardmaw/gitano.git
Branch: add-copy-command-rebase2
Commit-id: f0a4962f6385c94b6a4e309ddf2785441bf25fc8
Adds a copy command and the infrastructure it needed.
I'm not happy with the copy_dir api, it seems to be the wrong way around,
but it's powerful enough for what I need it for.
Richard Maw (9):
command: fix a typo in rename's error handler
util: add path_join function
repository: use path_join in some places
util: add copy_file
util: add hardlink_file and copy_symlink functions
util: add recursive directory copy functions
repository: add a copy_to method
repository: don't break a copy in progress
commands: add copy <source> <target>
lib/gitano/command.lua | 4 +-
lib/gitano/copycommand.lua | 108 +++++++++++++++++++++++++++++++++++++
lib/gitano/repository.lua | 69 ++++++++++++++++++++++--
lib/gitano/util.lua | 130 +++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 306 insertions(+), 5 deletions(-)
create mode 100644 lib/gitano/copycommand.lua
--
1.8.2.3
10 years, 3 months
[PATCH 0/4] Refactor LACE simple match and add PCRE
by Daniel Silverstone
This patch series refactors LACE's simple match code and adds prefix and suffix
to the available matches. Then finally we add PCRE support.
The PCRE support adds a dependency on lrexlib which can be found in the
lua-rex-pcre or liblua5.1-rex-pcre0 packages depending on your OS.
Daniel Silverstone (4):
LACE: Alter simple match compiler ready for more
LACE: Update simple match with generic matchers
LACE: Add prefix and suffix simple matches
LACE: Add PCRE support to simple matcher
lib/gitano/lace.lua | 90 ++++++++++++++++++++----------
skel/gitano-admin/rules/adminchecks.lace | 4 +-
skel/gitano-admin/rules/createrepo.lace | 2 +-
skel/gitano-admin/rules/defines.lace | 2 +-
4 files changed, 65 insertions(+), 33 deletions(-)
--
1.7.10.4
10 years, 4 months
[PATCH 0/5] Add a server-side repository copy command
by Richard Maw
Repo: git://gitano.org.uk/personal/richardmaw/gitano.git
Branch: add-copy-command-rebase
Commit: 0f682e35f071f18ede96dedb4cc6a2a2d4b5d480
Richard Maw (5):
Fix typo in error message in command.lua
Add utility functions for copying types of files
Add a copy method to repository object.
Create a copy command and register it
Merge cp_r and cp_lr into copy_dir
lib/gitano/command.lua | 4 +-
lib/gitano/copycommand.lua | 88 +++++++++++++++++++++++++++++++++++++++++++
lib/gitano/repository.lua | 57 ++++++++++++++++++++++++++++
lib/gitano/util.lua | 89 ++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 237 insertions(+), 1 deletion(-)
create mode 100644 lib/gitano/copycommand.lua
--
1.7.9.5
10 years, 4 months