Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Nov 2010 14:53:29 +0100
From:      Ulrich =?utf-8?B?U3DDtnJsZWlu?= <uqs@spoerlein.net>
To:        current@FreeBSD.org, fanf@FreeBSD.org
Subject:   Tricky subversion import, what to do?
Message-ID:  <20101107135329.GL85693@acme.spoerlein.net>

next in thread | raw e-mail | index | archive | help
Hello,

this is about importing unifdef 2.4, which has no significant code
changes, but that's not the point. The wiki is of no help for this
particular case.

We have no exclusive vendor branch for unifdef, instead it has been
converted to svn under vendor/CSRG/dist/usr.bin/unifdef/ and some parts of
its history (eg. r1591) are copied from there:

   A /head/usr.bin/unifdef/Makefile (from /vendor/CSRG/dist/usr.bin/unifdef/Makefile:1590)
   A /head/usr.bin/unifdef/unifdef.1 (from /vendor/CSRG/dist/usr.bin/unifdef/unifdef.1:1590)
   A /head/usr.bin/unifdef/unifdef.c (from /vendor/CSRG/dist/usr.bin/unifdef/unifdef.c:1590)

So, my first instinct would be to

$ svn mv $FSVN/vendor/CSRG/dist/usr.bin/unifdef $FSVN/vendor/unifdef/dist
(put all files (or just the necessary subset?) of unifdef-2.4 in vendor/unifdef/dist)
$ svn ci
$ svn cp $FSVN/vendor/unifdef/dist $FSVN/vendor/unifdef/2.4
$ svn cp $FSVN/vendor/unifdef/dist/unifdef.{c,1} $FSVN/head/contrib/unifdef/
$ svn rm head/usr.bin/unifdef/unifdef.{c,1}
(but this part loses the actual history on head, as it was never
committed to the vendor branch)
(update usr.bin/unidef/Makefile to point to contrib/unifdef)
$ svn ci

But then again, the first steps could also be:
$ svn cp head/usr.bin/unifdef vendor/unifdef/dist; svn ci
$ svn cp vendor/unifdef/dist vendor/unifdef/2.3; svn ci

This seems more reasonable to me, but I'm not sure what the policy is on
"old stuff" under vendor/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101107135329.GL85693>