On Thu, 2018-10-25 at 14:45 +0200, Christoph Martin wrote:

> It is on salsa for about half a year now.

Ah, I was mislead by the Homepage pointing to Alioth.

> Do you have a documentation how to include these snapshots into the
> git history?

Preparation:

cd apt-show-versions/
debsnap --force --destdir .. --last 0.09 apt-show-versions
git checkout --orphan archive
git rm -rf .

Repeat imports for each version:

for version in 0.03 0.07 0.08 0.09 ; do
   git ls-files -z | xargs -0 rm -- -f
   dpkg-source -x ../apt-show-versions_$version.dsc extract
   find extract/ -mindepth 1 -maxdepth 1 -print0 | xargs -0 mv -t .
   rmdir extract
   git add .
   git commit --date "$(dpkg-parsechangelog -S Date)" --author 
"$(dpkg-parsechangelog -S Maintainer)" -a -m "Import apt-show-version $version" 
-m "Imported-from: 
https://snapshot.debian.org/package/apt-show-versions/$version/";
   GIT_AUTHOR_DATE="$(dpkg-parsechangelog -S Date)" git tag -s $version -m 
"Import apt-show-version $version" -m "Imported-from: 
https://snapshot.debian.org/package/apt-show-versions/$version/";
done

Add the graft:

git replace --graft release-0.10^ 0.09^{}

https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-replace.html
https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-rev-parse.html

Finalise:

gitk --all
git push

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to