From 3514e31f18ed1af7d395af0e65c3d90b0bd7305d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 5 Apr 2008 15:14:41 -0400 Subject: Add commit hook script for bzr to add new files --- commit.d/40bzr-rm | 3 +++ commit.d/40git-rm | 3 +++ debian/changelog | 2 ++ 3 files changed, 8 insertions(+) diff --git a/commit.d/40bzr-rm b/commit.d/40bzr-rm index b690acc..d908a40 100755 --- a/commit.d/40bzr-rm +++ b/commit.d/40bzr-rm @@ -1,6 +1,9 @@ #!/bin/sh set -e +IFS=' +' + if [ "$VCS" = bzr ] && [ -d .bzr ]; then for file in $(bzr deleted); do if [ ! -d "$file" ]; then diff --git a/commit.d/40git-rm b/commit.d/40git-rm index acf7c37..d2c51c2 100755 --- a/commit.d/40git-rm +++ b/commit.d/40git-rm @@ -1,6 +1,9 @@ #!/bin/sh set -e +IFS=' +' + if [ "$VCS" = git ] && [ -d .git ]; then for file in $(git ls-files --deleted); do if [ ! -d "$file" ]; then diff --git a/debian/changelog b/debian/changelog index 7c131fd..8d5b124 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ etckeeper (0.15) UNRELEASED; urgency=low * Support for the new bzr pre-commit hook. This requires bzr version 1.4. (Jelmer Vernooij) + * bzr: Set nickname for tree in init.d/40vcs-init (Daniel Hahler) + * Add commit hook script for bzr to add new files (Daniel Hahler) -- Joey Hess Sat, 05 Apr 2008 14:39:10 -0400 -- cgit v1.2.3