One of our customer reported a funny issue with the pre-lock.bat hook script. Yes, when he use Subversion Server on Windows system. The customer is using a custom pre-lock.bat script to explicitly lock the file before every commit. Why does he explicitly lock the file while svn commit itself locks the file implicitly? He has a valid reason to do so.
In earlier releases (>v1.6), Subversion discarded the stdout messages printed in hook scripts. It is applicable for all hook scripts including pre-lock.bat script. Starting v1.6, it behaves same with all hook scripts, except pre-lock.bat script. The message printed in this hook script is used as a UID for the lock. It should be unique across the repository. The best part about Subversion is, it is clearly documented in the Subversion 1.6 Release Notes.
Guess what? The customer complained that the custom pre-lock.bat script worked very well in prior releases, but it do not work with Subversion 1.6. When he commit the file, he face 423 Locked Error error. When we investigated if it is got to do with any stdout messages, NO. The hook script does not print any message to stdout.
WHERE DO THE PROBLEM EXISTS?
The issue is, the customer has set echo on globally in his Windows system. It prints all the commands we execute in the hook script to stdout, including the comments as in rem command. The solution is to set echo off in his system, and he no more faces the problem!
In earlier releases (>v1.6), Subversion discarded the stdout messages printed in hook scripts. It is applicable for all hook scripts including pre-lock.bat script. Starting v1.6, it behaves same with all hook scripts, except pre-lock.bat script. The message printed in this hook script is used as a UID for the lock. It should be unique across the repository. The best part about Subversion is, it is clearly documented in the Subversion 1.6 Release Notes.
Guess what? The customer complained that the custom pre-lock.bat script worked very well in prior releases, but it do not work with Subversion 1.6. When he commit the file, he face 423 Locked Error error. When we investigated if it is got to do with any stdout messages, NO. The hook script does not print any message to stdout.
WHERE DO THE PROBLEM EXISTS?
The issue is, the customer has set echo on globally in his Windows system. It prints all the commands we execute in the hook script to stdout, including the comments as in rem command. The solution is to set echo off in his system, and he no more faces the problem!
- Location:home
- Mood:
cheerful
- 11:57 These days I use pkill command very often to terminate firefox and evolution applications.
- 12:00 With friends available for company, the monthly trip to Thiruvannamalai for Girivalam becomes a habit! Lord Shiva "keep the company going"!
- 18:53 I enjoy watching World T20 matches in ESPN and STAR SPORTS. Thank God, SONY MAX is not broadcasting the matches this time!
If you follow my blog, but dislike me updating my tweets to blog, please comment. I'll stop updating tweets to LJ if I get >5 votes against the updates.
- Location:home
- Mood:
cheerful
- 12:54 ICICI Bank takes *exactly* 4 days to clear a local cheque. They do not seem to honour RBI instruction to clear local cheques in 1 day.
- 18:33 Chennai Telephones maintain changed numbers for more than 3 years. We can query for a phone number, by providing the old phone number.
- 18:45 Ubuntu is the only FOSS project I knew that never slip dates. They consistently ship 2 releases every year: Apr(04) and Oct(10)! Agile?!?
- 19:11 The bing.com is older than google.com by an year. The domain was registered in year 1996. Was Microsoft developing Bing for 13 years? Wow!
- 09:58 It took only 90 minutes to travel chrompet->mylapore->tnagar->ashok nagar->guindy from 8.00am to 9.30am. Chennai traffic is not bad!
- 20:47 Subscribed ESPN and STAR CRICKET channels to view ICC T20 matches. Proud to use TATA SKY, as everything is done online instantaneously.
- 12:28 I do not like to retain emails without a Subject in Inbox. If it is important, I forward it again to me with valid subject.
- 12:23 Back from a week end trip to Madurai in TATA SUMO with friends. Noticed atleast 1 accident for every 50kms
- 12:25 The drive during night Madurai -> Chennai is thrilling, as there are no proper sign boards where the road is being laid Trichy -> Madurai
- 16:58 Saw this Tamil film Karuthamma (relesed in 90s) recently. Film carries a message on killing Baby Girls. Nice one from Bharathi Raja.
- 17:02 I feel ashamed to see 8 Cabinet/MOS ministers from my state. I do not think it make any difference to the state, except having a low profile
- 18:53 95% -- It is my activity score in the matrimony site!
- 17:46 These days I'm not following up with Livejournal friends & Orkut friends possibly because I've many other interesting stuff to look into.
- 21:06 The IGNOU student support site stusupport.ignou.ac.in is down for past 1 week. Bad System Admins. Bad for Students like me!
- 20:22 If you are fed-up with your work, take a break, say 1 week. Believe me, it pays off. You will be at your best when you return to work.
- 20:24 Learned lot of JS tricks mostly related to editing the html page dynamically. I can not believe I stayed away for JS these many years
- 08:55 I sense a pattern in this IPL tournament with the way DC and RCB team is playing. If my prediction is right, DC team will win the cup.
- 08:56 I'm completely impressed by the way RCB have bounced back in this tournament. All credit goes to the legend, Anil Kumble.
- 19:56 Enjoyed the day meeting one of my best friend after 2 years. It was completely relaxing and refreshing. Looking forward for the week ahead
- 18:30 These days, I do not have a friend with whom I can talk meaninglessly more than 10minutes over phone
- 18:19 Glad to see DMDK candidates have got more than 1lakh votes in 9 constituencies. They are one of reason for this result in Tamil Nadu
- 18:20 It will take atleast a decade to recover from this defeat for PMK party. Till then, I think DMDK will fill the gap for the alliance
- 18:35 In last 6years, I have not received even 1 cold call to my mobile number using my website. Telemarketers may love such a script/software!
- 18:45 After 6 months I have set my ringback tone. Set it to "Vizhi Moodi" song from tamil film, Ayan -- tr.im/lEth
- 21:35 @brianbehlendorf looking the nested items something like this? bit.ly/fetZl
- 11:27 Decided not to dream about the life partner. I think it does not work out this way! Lesser expectations and lesser shocks!
- Location:home
- Mood:
sympathetic
- 08:38 Everyone don't admit whom they voted for. I'm not sure why it should be a secret.
- 21:12 After 4 weeks checked my portfolio in moneycontrol.com site. Surprised to see Green in 2/3 of my investments.
- 10:03 Casted my vote for DMK candidate, T.R.Baalu. Last 3 times, the candidate and the party I voted for, have never won. Let me see this time!
