summaryrefslogtreecommitdiff
path: root/plugins/tree
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-07-01 23:22:00 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-07-01 23:22:00 -0600
commit504d11ded8c1e9a0757332f2a10ed7d86dd5fc70 (patch)
treea3bba73ac491feaaecddca3345d8a54c5673bf72 /plugins/tree
parent04b12bbea2be03a988e773afcd014a74d37ddca5 (diff)
A whole bunch of stuff
Diffstat (limited to 'plugins/tree')
-rw-r--r--plugins/tree/bin/addparent.d.sh44
-rw-r--r--plugins/tree/bin/addparent.f.sh27
-rw-r--r--plugins/tree/bin/addparent.sh35
-rw-r--r--plugins/tree/bin/commit.sh27
-rw-r--r--plugins/tree/bin/delparent.f.sh34
-rw-r--r--plugins/tree/bin/getchildren.sh28
-rw-r--r--plugins/tree/bin/getparents.sh27
-rw-r--r--plugins/tree/bin/print.sh27
-rw-r--r--plugins/tree/dep3
-rw-r--r--plugins/tree/info.mk.in3
10 files changed, 0 insertions, 255 deletions
diff --git a/plugins/tree/bin/addparent.d.sh b/plugins/tree/bin/addparent.d.sh
deleted file mode 100644
index db43dd2..0000000
--- a/plugins/tree/bin/addparent.d.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env bash
-name='addparent.d'
-ver=0.1
-# Copyright (C) 2010 Luke Shumaker
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; see the file COPYING.
-# If not, see <http://www.gnu.org/licenses>.
-
-usage="usage: $RVS $name CHILD PARENT"
- child=${1?"$usage"}
-parent=${2?"$usage"}
-
-tc="`mktemp`"
-tp="`mktemp`"
-
-"$RVS" ls "$child" '%i\t%n' > "$tc"
-"$RVS" ls "$parent" '%i\t%n' > "$tp"
-
-while read line; do
- name="`echo "$line" | cut -f2-`"
- nID="`echo "$line" | cut -f1`"
- oID="`sed -n "s:^\([a-z]\:[0-9a-f]*\)\t${name/:/\\:}$:\1:p" "$tp"`"
-
- if [ -n "$oID" ]; then
- nT="`"$RVS" blob-gettype "$nID"`"
- oT="`"$RVS" blob-gettype "$oID"`"
- if [ "$nT" = "$oT" ]; then
- "$RVS" addparent "$nID" "$oID"
- fi
- fi
-done < "$tc"
-
-"$RVS" addparent.f "$child" "$parent"
diff --git a/plugins/tree/bin/addparent.f.sh b/plugins/tree/bin/addparent.f.sh
deleted file mode 100644
index 61b4f92..0000000
--- a/plugins/tree/bin/addparent.f.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-name='addparent.f'
-ver=0.1
-# Copyright (C) 2010 Luke Shumaker
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; see the file COPYING.
-# If not, see <http://www.gnu.org/licenses>.
-
-usage="usage: $RVS $name CHILD PARENT"
- child=${1?"$usage"}
-parent=${2?"$usage"}
-
-file="$REPO/tree/$child/$parent"
-mkdir -p "`dirname "$file"`"
-echo "$parent" > "$file"
-
diff --git a/plugins/tree/bin/addparent.sh b/plugins/tree/bin/addparent.sh
deleted file mode 100644
index 6759bcb..0000000
--- a/plugins/tree/bin/addparent.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-name='addparent'
-ver=0.1
-# Copyright (C) 2010 Luke Shumaker
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; see the file COPYING.
-# If not, see <http://www.gnu.org/licenses>.
-
-usage="usage: $RVS $name CHILD PARENT"
- child=${1?"$usage"}
-parent=${2?"$usage"}
-
-if [ ! "$child" = "$parent" ]; then
- ct="`"$RVS" blob-gettype "$child"`"
- pt="`"$RVS" blob-gettype "$parent"`"
-
- if [ "$ct" = "$pt" ]; then
- "$RVS" "addparent.$ct" "$child" "$parent"
- else
- echo "$0: CHILD and PARENT must be the same type">>/dev/stderr
- exit 1
- fi
-fi
-
diff --git a/plugins/tree/bin/commit.sh b/plugins/tree/bin/commit.sh
deleted file mode 100644
index 89b1bf6..0000000
--- a/plugins/tree/bin/commit.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-name='rvs @ID@ commit'
-ver=0.1
-# Copyright (C) 2010 Luke Shumaker
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; see the file COPYING.
-# If not, see <http://www.gnu.org/licenses>.
-
-if [ "$RVS_LEVEL" = '0' ]; then
- id=`cat "$TMPDIR/commit/files"`
- wch="`"$RVS" tag-id wch 2>/dev/null`"
- if [ -n "$wch" ]; then
- "$RVS" addparent "$id" "$wch"
- fi
-fi
-
diff --git a/plugins/tree/bin/delparent.f.sh b/plugins/tree/bin/delparent.f.sh
deleted file mode 100644
index e53df9b..0000000
--- a/plugins/tree/bin/delparent.f.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-name='delparent.f'
-ver=0.1
-# Copyright (C) 2010 Luke Shumaker
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; see the file COPYING.
-# If not, see <http://www.gnu.org/licenses>.
-
-usage="usage: $RVS $name CHILD PARENT"
- child=${1?"$usage"}
-parent=${2?"$usage"}
-
-file="$REPO/tree/$child/$parent"
-rm "$file"
-if [ -z "$(ls "`dirname "$file"`")" ]; then
- rmdir "`dirname "$file"`"
-fi
-
- dir="$REPO/tree/$child"
-if [ -z "$(ls "`dirname "$dir"`")" ]; then
- rmdir "`dirname "$dir"`"
-fi
-
diff --git a/plugins/tree/bin/getchildren.sh b/plugins/tree/bin/getchildren.sh
deleted file mode 100644
index 952522c..0000000
--- a/plugins/tree/bin/getchildren.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-name='getchildren'
-ver=0.1
-# Copyright (C) 2010 Luke Shumaker
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; see the file COPYING.
-# If not, see <http://www.gnu.org/licenses>.
-
-usage="Usage: $RVS $name ID"
-id="${1?"$usage"}"
-
-dir="$REPO/@ID@/"
-if [ -d "$dir" ]; then
- grep -rFxh "$id" "$dir"
-fi
-
-
diff --git a/plugins/tree/bin/getparents.sh b/plugins/tree/bin/getparents.sh
deleted file mode 100644
index 6e3edbd..0000000
--- a/plugins/tree/bin/getparents.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-name='getparents'
-ver=0.1
-# Copyright (C) 2010 Luke Shumaker
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; see the file COPYING.
-# If not, see <http://www.gnu.org/licenses>.
-
-usage="Usage: $RVS $name ID"
-id="${1?"$usage"}"
-
-dir="$REPO/@ID@/$id"
-if [ -d "$dir" ]; then
- cat "$dir"/*
-fi
-
diff --git a/plugins/tree/bin/print.sh b/plugins/tree/bin/print.sh
deleted file mode 100644
index 0ebf8fd..0000000
--- a/plugins/tree/bin/print.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-name='print'
-ver=0.1
-# Copyright (C) 2010 Luke Shumaker
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; see the file COPYING.
-# If not, see <http://www.gnu.org/licenses>.
-
-usage="Usage: $RVS $name ID"
-id="${1?"$usage"}"
-
-echo "Parents:"
-"$RVS" getparents "$id" | sed 's/\(.*\)/ \1/'
-echo "Children:"
-"$RVS" getchildren "$id" | sed 's/\(.*\)/ \1/'
-
diff --git a/plugins/tree/dep b/plugins/tree/dep
deleted file mode 100644
index 2485770..0000000
--- a/plugins/tree/dep
+++ /dev/null
@@ -1,3 +0,0 @@
-commit/tags :: commit/tree
-commit/tree :: commit/files
-
diff --git a/plugins/tree/info.mk.in b/plugins/tree/info.mk.in
deleted file mode 100644
index b947f3d..0000000
--- a/plugins/tree/info.mk.in
+++ /dev/null
@@ -1,3 +0,0 @@
-name = tree
-ver = 0.1
-