Yay! :) The svn people go fast.
FAQ into svn svn and onto web while we were away visiting Cobh for the weekend.
http://subversion.tigris.org/faq.html#switch-problems
I investigated the svn switch thing and make a FAQ entry but then
started to understand the problem so had to investigate more and
revise emails and the FAQ entry I had made. A few late nights last week.
Anyway eventually got everything together and posted to the svn dev list.
WITHOUT the patch for the FAQ entry!!! :( DOH.
But clever svn person Karl Fogel got it from the copy I put up for review.
And everyone is very nice on the dev and users list.
For Thunderbird I have found this: Check and Send extension:
https://addons.mozilla.org/en-US/thunderbird/addon/2281
YouI have to configure it and add list of attach keywords "attach|patch|attached|attachment"
it works! Warning dialog and lots of lovely yellow highlighting.
My internal paranoid over-shoulder watcher has not been good last week.
With root too :(
It's very twitchy now though.
user@develop$ cd
user@develop$ ls -al
[ lots of stuff owned as root ]
user@develop$ su -
password:
root@develop$ chown -r user:user .
*AUGH!*
telnet was method of connecting to machine and telnet in broken after that spectacularily unspectacular method of making a huge mess. :(
Monday, 16 July 2007
Wednesday, 11 July 2007
svn switch problem - cannot switch from ''unclean'' checkout
Is this true? svn switch will only work if switching from a clean checkout i.e. no unversioned files and no changes of any type. (I would guess a very new and simple repository might not have this problem.)
Let's see if we can find out if people know about the "svn switch problem"
Post to svn users list and also logged comment in svn bug 2505.
http://svn.haxx.se/users/archive-2007-07/0276.shtml
Subject: svn switch problem - cannot switch from ''unclean'' checkout
Hello,
We had a bit of a problem with using svn switch.
If doing a switch and there are unversioned (maybe ignored) items in the checkout
then you can get errors and end up with an unusable repository.
We now keep a ''pristine'' clean checkout of any trunk or branch that is worked off of
and update it then copy and switch when we need to checkout.
I think this is this issue:
http://subversion.tigris.org/issues/show_bug.cgi?id=2505
http://subversion.tigris.org/issues/show_bug.cgi?id=2466
The bugs there last had activity July 2006 so I don't think they're in line to be
fixed?
Do many large projects with lots of parallel development and branches use svn?
I wonder are people seeing this issue and giving up on using svn switch?
I was surprised this isn't better known? Or is it?
I think any project that made use of branches could benefit from having this
documented. A "bugfix" and better error would be nice also in time :)
It would be very nice if there was a note in FAQ or manual on svn switch.
If people agree this is an issue we could submit some content for that.
For now I'd like to hear what you think.
The switch is used at sites remote to the svn server to avoid doing a checkout
every time a developer moves to working in another branch.
Move to another branch is done frequently enough as all work is done on branches
using Trac tickets.
I think the switch problem is a puzzling one as to me it seems natural that if
an svn status reported that there were no changes to versioned files then a
svn switch would do the right thing and warn and move unversioned files out
of the way. The need to do switch only from pristine checkout is also not
mentioned in svn manual.
Thanks,
James.
=== Using svn switch instead of svn checkout to save time ===
A full checkout of a large repository branch may take a long time >15 mins :(
This is a problem for users who are not in same site as svn repository.
Instead of doing a checkout every time a user may checkout the trunk (or SDB) of the
project they are working on initially. They take a copy of that clean trunk and
use ''svn switch'' to change it to the branch ticket instead of checking out the
branch ticket.
Setup (initial checkout of pristine copy):
mkdir /pristine
cd /pristine
svn co $SVNROOT/${project}/trunk ${project}_trunk
gtar -zcvf ${project}_trunk.tgz ${project}_trunk
Switch (user updates pristine copy from svn, then copies it and does the switch):
# '''Note: It is very important that the pristine copy is kept absolutely clean'''
cd /pristine/${project}_trunk
svn up
cd ..
gtar -zcvf ${project}_trunk.tgz ${project}_trunk
cd /checkedout
gtar -zxvf /pristine/${project}_trunk.tgz ${project}-xxx
svn switch $SVNROOT/${project}/branches/ticket-xxx
==== support scripts and Pristine server ====
A server can be set up in each site which will keep
''pristine'' clean copies of project trunks and SDBs. The copies would be
checked out afresh once and updated nightly. (by script setup as a service)
Users on a site would use those ''pristine'' clean copies to switch from and
this would be supported by a script. A script to clear out and make ''pristine'' a checkout is left
as an exercise to the student :-P :)
Switch from pristine: (recordings share must be mounted)
cd /checkedout
gtar -zxvf $SVNPRISTINE/${project}_trunk.tgz ${project}-xxx
svn switch $SVNROOT/${project}/branches/ticket-xxx
Let's see if we can find out if people know about the "svn switch problem"
Post to svn users list and also logged comment in svn bug 2505.
http://svn.haxx.se/users/archive-2007-07/0276.shtml
Subject: svn switch problem - cannot switch from ''unclean'' checkout
Hello,
We had a bit of a problem with using svn switch.
If doing a switch and there are unversioned (maybe ignored) items in the checkout
then you can get errors and end up with an unusable repository.
We now keep a ''pristine'' clean checkout of any trunk or branch that is worked off of
and update it then copy and switch when we need to checkout.
I think this is this issue:
http://subversion.tigris.org/issues/show_bug.cgi?id=2505
http://subversion.tigris.org/issues/show_bug.cgi?id=2466
The bugs there last had activity July 2006 so I don't think they're in line to be
fixed?
Do many large projects with lots of parallel development and branches use svn?
I wonder are people seeing this issue and giving up on using svn switch?
I was surprised this isn't better known? Or is it?
I think any project that made use of branches could benefit from having this
documented. A "bugfix" and better error would be nice also in time :)
It would be very nice if there was a note in FAQ or manual on svn switch.
If people agree this is an issue we could submit some content for that.
For now I'd like to hear what you think.
The switch is used at sites remote to the svn server to avoid doing a checkout
every time a developer moves to working in another branch.
Move to another branch is done frequently enough as all work is done on branches
using Trac tickets.
I think the switch problem is a puzzling one as to me it seems natural that if
an svn status reported that there were no changes to versioned files then a
svn switch would do the right thing and warn and move unversioned files out
of the way. The need to do switch only from pristine checkout is also not
mentioned in svn manual.
Thanks,
James.
=== Using svn switch instead of svn checkout to save time ===
A full checkout of a large repository branch may take a long time >15 mins :(
This is a problem for users who are not in same site as svn repository.
Instead of doing a checkout every time a user may checkout the trunk (or SDB) of the
project they are working on initially. They take a copy of that clean trunk and
use ''svn switch'' to change it to the branch ticket instead of checking out the
branch ticket.
Setup (initial checkout of pristine copy):
mkdir /pristine
cd /pristine
svn co $SVNROOT/${project}/trunk ${project}_trunk
gtar -zcvf ${project}_trunk.tgz ${project}_trunk
Switch (user updates pristine copy from svn, then copies it and does the switch):
# '''Note: It is very important that the pristine copy is kept absolutely clean'''
cd /pristine/${project}_trunk
svn up
cd ..
gtar -zcvf ${project}_trunk.tgz ${project}_trunk
cd /checkedout
gtar -zxvf /pristine/${project}_trunk.tgz ${project}-xxx
svn switch $SVNROOT/${project}/branches/ticket-xxx
==== support scripts and Pristine server ====
A server can be set up in each site which will keep
''pristine'' clean copies of project trunks and SDBs. The copies would be
checked out afresh once and updated nightly. (by script setup as a service)
Users on a site would use those ''pristine'' clean copies to switch from and
this would be supported by a script. A script to clear out and make ''pristine'' a checkout is left
as an exercise to the student :-P :)
Switch from pristine: (recordings share must be mounted)
cd /checkedout
gtar -zxvf $SVNPRISTINE/${project}_trunk.tgz ${project}-xxx
svn switch $SVNROOT/${project}/branches/ticket-xxx
Labels:
branches,
subversion,
svn,
svn switch,
tick,
trac
Thursday, 5 July 2007
Gödel, Fermat and everything2.com
GEB == a book by Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
The GEB page on everything2.com doesn't say much on the self-reference and layers of self-reference that build complex system (such as human intelligence). This for me was a puzzling thing. How come we have this "feeling" of being/thinking? Is there a God? :-P I wondered about that for years before I read bits in EGB again on recursive self reference. And then read the intro again. He says everything in the intro :). I had that mind opening inspiration feeling.
Godel's theorem applied to God on everything2.com
Fionn thinks I'm a bit weird I think and doesn't get the self-referential jokes. Oh well.
xkcd.com has some self-referential jokes. :)
The explaination of how we have this feeling of "I" is cool.
It could lead us into discussion of atheism. Hmm, maybe not now.
Belief of God as such isn't a problem as such. Wrong maybe :).
The problem is that people seem very inclined to turn over their thinking/actions to their religious leaders and also happy to obey random thoughts inside their heads if they have a belief in some higher power.
Sentient beings have to take full responsibility for themselves. (we're doomed! :) )
"This is my simple religion. There is no need for temples; no need for complicated philosophy. Our own brain, our own heart is our temple; the philosophy is kindness." -- Dalai Lama
other cute stuff from everything2.com:
Godel: any sufficiently strong axiomatic system is either inconsistent or incomplete
http://www.everything2.com/index.pl?node_id=1189604
it can be proved that if it can be proved that it can't be proved that two plus two is five, then it can be proved that two plus two is five
(from Godel's Second Incompleteness Theorem explained in words of one syllable)
Haiku: Gödel's theorem. Complete? Then inconsistent!
"1 + 1 = 2" - Principia Mathematica
"Any sufficiently advanced technology is indistinguishable from magic." - http://en.wikipedia.org/wiki/Clarke's_three_laws (3rd law)
if n is an integer larger than 2, then the equation an + bn = cn has no solution for which a, b, and c are integers larger than zero - Fermat
Demonstrationem mirabilem hanc marginis exigiutas non caperet - Fermat
Occam's Razor ... and checking is it plugged in.
The "i" in "slithy" is long, as in "writhe"; and "toves" is pronounced so as to rhyme with "groves." Again, the first "o" in "borogoves" is pronounced like the "o" in "borrow." I have heard people try to give it the sound of the "o" in "worry. Such is Human Perversity. -- Lewis Carroll
Kitten principle: any amount more of kittens are not capable of creating more chaos than one kitten is capable of creating, but are in fact capable of being cuter.
The GEB page on everything2.com doesn't say much on the self-reference and layers of self-reference that build complex system (such as human intelligence). This for me was a puzzling thing. How come we have this "feeling" of being/thinking? Is there a God? :-P I wondered about that for years before I read bits in EGB again on recursive self reference. And then read the intro again. He says everything in the intro :). I had that mind opening inspiration feeling.
Godel's theorem applied to God on everything2.com
Fionn thinks I'm a bit weird I think and doesn't get the self-referential jokes. Oh well.
xkcd.com has some self-referential jokes. :)
The explaination of how we have this feeling of "I" is cool.
It could lead us into discussion of atheism. Hmm, maybe not now.
Belief of God as such isn't a problem as such. Wrong maybe :).
The problem is that people seem very inclined to turn over their thinking/actions to their religious leaders and also happy to obey random thoughts inside their heads if they have a belief in some higher power.
Sentient beings have to take full responsibility for themselves. (we're doomed! :) )
"This is my simple religion. There is no need for temples; no need for complicated philosophy. Our own brain, our own heart is our temple; the philosophy is kindness." -- Dalai Lama
other cute stuff from everything2.com:
Godel: any sufficiently strong axiomatic system is either inconsistent or incomplete
http://www.everything2.com/index.pl?node_id=1189604
it can be proved that if it can be proved that it can't be proved that two plus two is five, then it can be proved that two plus two is five
(from Godel's Second Incompleteness Theorem explained in words of one syllable)
Haiku: Gödel's theorem. Complete? Then inconsistent!
"1 + 1 = 2" - Principia Mathematica
"Any sufficiently advanced technology is indistinguishable from magic." - http://en.wikipedia.org/wiki/Clarke's_three_laws (3rd law)
if n is an integer larger than 2, then the equation an + bn = cn has no solution for which a, b, and c are integers larger than zero - Fermat
Demonstrationem mirabilem hanc marginis exigiutas non caperet - Fermat
The "i" in "slithy" is long, as in "writhe"; and "toves" is pronounced so as to rhyme with "groves." Again, the first "o" in "borogoves" is pronounced like the "o" in "borrow." I have heard people try to give it the sound of the "o" in "worry. Such is Human Perversity. -- Lewis Carroll
Kitten principle: any amount more of kittens are not capable of creating more chaos than one kitten is capable of creating, but are in fact capable of being cuter.
notepad quote 0xa1 not 0x22 ? php
Fionn has a php problem and I notice in email her quotes don't look the same.
She is editing in windows notepad.
but you have bad quotes!!
good: ">",
bad: ”>”,
0000130: 2e22 3e22 2c0a 0a20 2067 6f6f 643a 2022 .">",.. good: "
0000140: 3e22 2c0a 2020 6261 643a 2020 a13e a12c >",. bad: .>.,
0000150: 0a0a 0a ...
good quotes are 0x22 your bad quotes are 0xa1 some extended ascii character
HTH == hopefully this helps (or appropriately scary Hand-To-Hand ascii-jujitsu),
She is editing in windows notepad.
but you have bad quotes!!
good: ">",
bad: ”>”,
0000130: 2e22 3e22 2c0a 0a20 2067 6f6f 643a 2022 .">",.. good: "
0000140: 3e22 2c0a 2020 6261 643a 2020 a13e a12c >",. bad: .>.,
0000150: 0a0a 0a ...
good quotes are 0x22 your bad quotes are 0xa1 some extended ascii character
HTH == hopefully this helps (or appropriately scary Hand-To-Hand ascii-jujitsu),
Subscribe to:
Posts (Atom)