ID: | 1145 |
From: | ge...@igor2.repo.hu |
Date: | Thu, 28 Dec 2017 05:01:59 +0100 (CET) |
Subject: | Re: [pcb-rnd] layers in lesstif |
in-reply-to: | 1139 from ka...@aspodata.se |
replies: | 1147 from ka...@aspodata.se |
On Wed, 27 Dec 2017, karl@aspodata.se wrote: > Karl: > ... >> $ svn up -r1000 >> U src/copy.h >> svn: Failed to add directory 'src/pcb-mincut': a versioned directory of the same name already exists >> $ >> >> maybe there is a better way to check out old releases ? > > Found som book about svn on the net: > http://svnbook.red-bean.com/en/1.7/svn-book.pdf > p.40 said I should use this syntax: > > with svn co svn://repo.hu/pcb-rnd/trunk@1000 trunk-1000 Yup; the @1000 suffix is just a shorthand for -r1000, they do the same. A trick I often do: I do the checkout under /tmp, because that's in ram on most modern systems. The whole checkout and all binaries when compiled is some 50..80 megs on x86_64 IIRC, so a few different revs fit before it starts to cause problems with the memory usage. > I could get r1000, but: > > $ cd trunk-1000/ > $ ./configure > cc -Wall -g -DGENCALL -Isrc -DPLUGIN_SCRIPTS -I/tmpasm -I/generator -DPLUGIN_C99 -DPLUGIN_PARSGEN -DPLUGIN_MATH -DPLUGIN_GUI -DPLUGIN_SUL -Isrc/default -c -o src/util/arg_auto_set.o src/util/arg_auto_set.c > cc -Wall -g -DGENCALL -Isrc -DPLUGIN_SCRIPTS -I/tmpasm -I/generator -DPLUGIN_C99 -DPLUGIN_PARSGEN -DPLUGIN_MATH -DPLUGIN_GUI -DPLUGIN_SUL -Isrc/default -c -o hooks.o hooks.c > hooks.c:8:20: fatal error: tmpasm.h: No such file or directory > compilation terminated. > make: *** [hooks.o] Error 1 > ./configure: line 4: ./configure: No such file or directory > $ find . -type f -name tmpasm.h > ./scconfig/src/tmpasm/tmpasm.h > $ > > In svn co svn://repo.hu/pcb-rnd/trunk@4000 trunk-4000 > configure works, but > > $ make > cd src && make > make[1]: Entering directory `/Net/svn/test/trunk-4000/src' > make revcheck > make[2]: Entering directory `/Net/svn/test/trunk-4000/src' > cd ../scconfig && ./revtest Rev.stamp < Rev.tab > make[2]: Leaving directory `/Net/svn/test/trunk-4000/src' > make all_exe > make[2]: Entering directory `/Net/svn/test/trunk-4000/src' > make[2]: *** No rule to make target `../src_3rd/liblihata/genht/ht.h', needed by `action_helper.o'. Stop. > make[2]: Leaving directory `/Net/svn/test/trunk-4000/src' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/Net/svn/test/trunk-4000/src' > make: *** [all] Error 2 > $ > > basically the same with r10000. > > /// > > So, what about the externals, e.g. scconfig: > > for r10000 I get > A trunk-10000/scconfig/src/tty/find_pty.c > Checked out external at revision 1241. > > for r1000 I get > A trunk-1000/scconfig/src/tty/find_gpm.c > Checked out external at revision 1241. > > i.e. the same version. Looking at the log, the last thing in r1000 > is 2016-02-14: > > $ svn log | head -2 > ------------------------------------------------------------------------ > r1000 | igor2 | 2016-02-14 07:00:28 +0100 (Sun, 14 Feb 2016) | 2 lines > > > But in scconfigs own svn log I get the latest for the same date to be: > ------------------------------------------------------------------------ > r962 | igor2 | 2016-02-14 18:01:22 +0100 (Sun, 14 Feb 2016) | 2 lines > > [menulib] -Fix: menu, rl and text are actually included and won't have their own .o > > So how do I get a correct snapshot of an old version in svn, inclusive > the externals ? Yes, the externals... They are "3rd party" software from different places with different history. You need to have them checked out at the same old state as the main repo is checked out. We have a script that checks out everything, including the externals, at a specific main revision in time. It's called trunk/util/bisected/bisecter ; usage: ./bisecter checkout 4000 (It can also compile and cache compiled binaries in compressed form which are then easy and fast to get from the cache - I built a snapshots of every 500th revision a few months ago so time travel is easier for me). Regards, Igor2
Reply subtree:
1145 Re: [pcb-rnd] layers in lesstif from ge...@igor2.repo.hu
1147 Re: [pcb-rnd] layers in lesstif from ka...@aspodata.se
1150 Re: [pcb-rnd] layers in lesstif from ge...@igor2.repo.hu
1156 Re: [pcb-rnd] layers in lesstif from ka...@aspodata.se
1159 Re: [pcb-rnd] layers in lesstif from ge...@igor2.repo.hu
1160 Re: [pcb-rnd] layers in lesstif from ka...@aspodata.se
1163 gtk+gl build error on lesstif (was: Re: [pcb-rnd] layers in from ge...@igor2.repo.hu
1164 Re: gtk+gl build error on lesstif (was: Re: [pcb-rnd] layers in from ge...@igor2.repo.hu
1166 Re: gtk+gl build error on lesstif (was: Re: [pcb-rnd] layers in lesstif) from ka...@aspodata.se
1167 Re: [pcb-rnd] layers in lesstif from ka...@aspodata.se
1184 Re: [pcb-rnd] layers in lesstif from ge...@igor2.repo.hu