billig viagra comprare viagra in farmacia generika cialis cialis paris acheter générique viagra viagra online portugal precios cialis viagra 50mg ou 100mg achat cialis 5mg comprar cialis genérico levitra 10mg rezeptfrei farmacia online kamagra kamagra i sverige sicher viagra kaufen levitra pastilla
boutiques viagra 
achat levitra en france 
levitra belgique 
forum viagra internet 
vrai viagra en ligne 
viagra ou cialis prix 
cialis achat france livraison rpide 
kamagra gel farmacia svizzera 
viagra en pharmacie prix 
prix du cialis 10 
achat viagra internet 
kamagra en jours 
viagra livraison france 
vente viagra libre 
vente viagra pfizer 
buy viagra online uk cialis where to buy discount viagra online viagra sale kamagra paypal viagra naturel viagra performance sexelle cialis drug purchase cialis cialis no prescription cialis for women bupropion no prescription viagra delivery cialis cost per pill kamagramg oral jelly usa

How To Recover Deleted Subversion Branch

I recently deleted a branch from our (svn) code repository. Did you know that it’s the general recommendation to delete a branch after a merge to ensure that nobody commits to it. (see svnmerge wiki for more on that advice)

Svn checkout, svn info, etc. all fail when you try to access the deleted branch immediately:

$ svn log --limit=3 $HOST/portal/branches/VA1-12
svn: '/svn/repos_path/!svn/bc/8881/portal/branches/VA1-12' path not found

But the interesting thing is that we need to add a so-called peg revision, denoted by the @ after the URL:

$ svn log --limit=3 $HOST/portal/branches/VA1-12@8800

r8774 | jronn | 2009-11-23 11:30:40 +0100 (Mon, 23 Nov 2009) | 3 lines

Max height in search results (indberetninger): 34px is 2 lines for a total of max 4 lines.

Also converted spaces to tabs and removed trailing whitespace for consistency
r8769 | jronn | 2009-11-17 17:01:25 +0100 (Tue, 17 Nov 2009) | 1 line

Horizontal train first-shot with new image files
r8768 | jronn | 2009-11-17 17:01:21 +0100 (Tue, 17 Nov 2009) | 1 line

Removed image files having not been used for a long time

And to recover the deleted branch (for instance by checking out a copy):

$ svn co $HOST/portal/branches/VA1-12@8800 va112

More info on peg revisions in svn book

One Response to “How To Recover Deleted Subversion Branch”

  1. Shaun Judy Says:

    Wow! This was a real life saver for me. I had this happen to me on one of my computers and I have been on the biggest mission searching on how to fix it.