[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Antwort: Migrating from Dimensions to Subversion

From: <Andreas.Otto_at_versit.de>
Date: Thu, 13 Nov 2008 15:35:32 +0100

Hi,

        everybody whish that but I think it is not possible ...

        you can just do a full dimension export and a subversion import
for each baseline

        1) checkout the initial baseline from Dimension

        2) do an initial checkin to subversion (!! Attention we figure out
to make the intial
                checkin with chuncks of ~100 files be best .....
                -> don't checkin all files with one single commit !!!

        3) make a svn copy to a Baseline folder in subvertion called like
the initial baseline

        ---> cycle start until the current head

                4) checkout the next baseline form dimension into the same
directory as in 2

                5) use the following skript for import

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#!/bin/bash
#!/bin/bash -xv
########################################################
##
## autocommit n subversion tree
##
## usage: autocommit.sh SVN-Directory
##
## Author .. Andreas Otto
## Date .... 2.3.2005
##
## Change-Log:
## 2 mar 2005 aotto Initial Setup
## 7 jun 2006 aotto add mdwEmailForward support
##
########################################################

SELF=$(basename $0 .sh)
DIR=$1
TMP=/tmp/$SELF.st

## procedures
Msg() {
  echo ">$@"
}

Exit() {
  #test -f $TMP && rm $TMP
  exit ${1:-0}
}

Error() {
  Msg "ERROR: $@"
  Exit 1
}

## check directory
[[ ! -d $DIR || ! -d $DIR/.svn ]] && Error "'$DIR' is no subversion
directory"

## change into directory
cd "$DIR" || Error "unable to change into directory '$DIR'"

## do the cleanup
svn cleanup

## do the status
svn status 1>$TMP 2>&1
test ! -s $TMP && {
  Msg "nothing to import ..."
  Exit 0
}

## add all unknown files
IFS='
'
for F in $(grep '^[?]' $TMP | cut -c 8-) ; do
    svn add "$F"
done
unset IFS

## delete all deleted files
IFS='
'
for F in $(grep '^[!]' $TMP | cut -c 8-) ; do
    svn delete "$F"
done
unset IFS

## do the status
#svn diff

## do the commit
svn commit -m "committed by $SELF" || Error FINISH

## convert the whole subtree into the current revision
svn update

## finish
Exit
 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

                3) make a svn copy to a Baseline folder in subvention
called like the current baseline

        <--- cycle end

 
Freundliche Grüße

Andreas Otto
ISV13 - Systemverantwortung Leben
 
Telefon 0431/603-2388
Sophienblatt 33
24114 Kiel
 
VersIT Versicherungs-Informatik GmbH
Gottlieb-Daimler-Str. 2, 68165 Mannheim
Registergericht: Mannheim HRB 6287
Vorsitzender der Geschäftsführung: Claus-Peter Gutt

Uzo okoye <kejike80_at_hotmail.com>
13.11.2008 13:52

An
<users_at_subversion.tigris.org>
Kopie

Thema
Migrating from Dimensions to Subversion

Hi,
 
Please is it possible to migrate from a Dimensions repository to
Subversion and take all the baselines and revision history to Subversion?
 
Thanks
 
Uzo
... Cast your burdens upon the Lord for He cares for you ...
Enough to die for you!!!

Click here for FREE customisable desktop wallpapers. Get them Now!
Received on 2008-11-13 15:36:11 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.