|
Revision 7227, 0.7 kB
(checked in by p_lindheimer, 5 years ago)
|
tool to reset lastpublish module properties after an svnmerge and before a checkin
|
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
# |
|---|
| 3 |
# This script is intended to be run after an svnmerge.py branch merge |
|---|
| 4 |
# in the modules directory. It resets the lastpublish property from any |
|---|
| 5 |
# changes that may have been imposed from a merge since this property |
|---|
| 6 |
# should reflect the last revision number of the current branch that was |
|---|
| 7 |
# published. |
|---|
| 8 |
# |
|---|
| 9 |
|
|---|
| 10 |
for MODULE in `ls` |
|---|
| 11 |
do |
|---|
| 12 |
if [ -d $MODULE ] |
|---|
| 13 |
then |
|---|
| 14 |
URL=`svn info $MODULE | grep URL: | cut -f 2 -d ' '` |
|---|
| 15 |
PROP=`svn propget lastpublish $URL` |
|---|
| 16 |
PROPNOW=`svn propget lastpublish $MODULE` |
|---|
| 17 |
|
|---|
| 18 |
echo checking $MODULE current $PROPNOW previous $PROP |
|---|
| 19 |
if [ -n $PROP ] && [ $PROP -ne $PROPNOW ] |
|---|
| 20 |
then |
|---|
| 21 |
echo setting lastpublish on $MODULE from $PROPNOW to $PROP |
|---|
| 22 |
svn ps lastpublish $PROP $MODULE |
|---|
| 23 |
fi |
|---|
| 24 |
fi |
|---|
| 25 |
done |
|---|