Thursday, 19 January 2012

cause and recover from svn update failure: "Delta source ended unexpectedly"

svn update fails with message: "Delta source ended unexpectedly"

I saw this happen with updates to my svn working areas after a svn replication problem was fixed on server(wandisco). The svn working areas were inconsistent with svn server (after the change on the server) and had this error which needed fixing. The problem was particular to certain directories (the ones where replication was broken for a time). Probably the svn replication problem fix changed the svn version history, order or svn revision numbers. 

How can you identify the directory or files with the problem?

Look at svn status, directory or files with problem status marked with "!" (after you get "Delta source ended unexpectedly" error) are the problem. The dame dirs/files in other working copies probably also have the problem.


How can problem be solved?
Delete the problem directory or files and do svn update.
You may need to repeat this for any dir with problem.
Or do a complete fresh svn checkout.

http://www.google.ie/search?q=svn+delta+source+ended+unexpectedly

http://blog.manontheground.net/traveller/2008/07/svndeltasourcee.html

Tuesday, 3 January 2012

svn commit helper without using svn agent. no auth cache

Use svn agent to store svn credentials securely and avoid having to enter username and password multiple times. But if setting up svn agent is not practical and password security is not an issue this svnci alias and getmysvndetails script can be used to help do checkins and NOT update svn stored passwords.

p.s. aliases are deprecated :) svnci should be a bash function or script also

cat getmysvndetails
#!/bin/bash

# svn client use results in svn credentials being re-written to svn cache by svn client
# the last username entered becomes the default (even if password not stored in cache)
# use this alias to assist working as different svn users in the same unix/other user accounts
#alias svnci='. getmysvndetails; svn ci --username $MYSVNUSER --password $MYSVNPASS --no-auth-cache'

if [[ $0 == $BASH_SOURCE ]] ; then echo "This script must be sourced. Try again:"; echo " . $0"; exit; fi

if [[ "$MYSVNUSER" == "" ]] ; then
  read -p "Enter SVN username: " MYSVNUSER ;
fi

if [[ "$MYSVNPASS" == "" ]] ; then
  read -p "Enter SVN password: " MYSVNPASS ;
fi

export MYSVNUSER
export MYSVNPASS

Monday, 2 January 2012

flexagon. square.

I made a flexagon on new year. and followed the paths through it.

Published with Blogger-droid v1.4.9