This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Retrieving an old SVN version snapshot

0

I have done quite a bit of development on Wireshark a while ago (about a year and a half) and need to pick it up. I need to migrate changes to the latest Wireshark and I am sure it has changed considerably. What I would like to do is to be able to get hold of a SVN snapshot (47653 to be precise). Is this possible using Git or am I now stuck?

Robert

asked 17 Apr '14, 11:31

robertc808's gravatar image

robertc808
11112
accept rate: 0%


One Answer:

0

Each Git commit that was imported from SVN should contain revision information, e.g. "svn path=/trunk/; revision=47653". This means that you should be able to use git log to find a specific revision, then check out a branch based on that revision. For example, the following matches r47653 to commit 1019582c47cbf445f1079de6bddcfbcf654141f5, and creates a branch in my local repository named "svn-r47653" from that commit:

git log -1 --grep revision=47653
git checkout -b svn-r47653 1019582c47

answered 17 Apr '14, 11:47

Gerald%20Combs's gravatar image

Gerald Combs ♦♦
3.3k92258
accept rate: 24%

edited 17 Apr '14, 12:02