Thanks Thomas,<br><br>I guess at all costs is a fairly good answer 8-)<br><br>I end up switching between Dreamweaver and Textmate and command line quite often these days anyway... Dreamweaver has it's uses...<br><br>Your answer is sort of what I was expecting I would get as a reply... thanks for the fast reply thought!
<br><br>Regards<br><br>Mikel<br><a href="http://www.blognow.com.au/q">http://www.blognow.com.au/q</a><br><br><div><span class="gmail_quote">On 3/30/07, <b class="gmail_sendername">Thomas Aylott (subtleGradient)</b> <<a href="mailto:oblivious@subtlegradient.com">
oblivious@subtlegradient.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<div><div><span class="e" id="q_111a267632b8d0b9_1"><div><div>On Mar 30, 2007, at 12:40 AM, lekim raasdnil wrote:</div><br><blockquote type="cite">Hello all.<br><br>I have been looking at Textmate and bluntly, have been blown away by the balance it has gotten between a really narrow scope that is done really really really well.
<br><br>For example, "wrap each line" bundle command is just majic! I can't think how many times I have had to do this by hand in Dreamweaver! <br><br>But I have a question that I am sure someone else has solved that I have not found a solution for on the web.
<br><br>That is, how do you integrate Textmate, with SVN and also manage sites?<br><br>Now, before ou just hit reply and say "SVNX" let me explain... <br><br>Dreamweaver has a nice feature, that is, it knows about all the files in the site. if you change the location of a file, change the name of a directory or the name of the file itself within the site, it will run back through the entire site and update every link to that file.
<br><br>This is especially useful when you are re-coding sites and bringing them up to the CSS age.<br><br>The problem with this, is if you do it, SVN doesn't see it and SVN then complains about missing file X and added file Y when in fact it is a simpel rename X to Y - the end result of this is polution orphans in the SVN database (not a huge problem, unless you are using huge files)
<br><br>Conversly, if you do the move from SVN (svn rename big_picture.jpg little_picture.jpg) then Dreamweaver doesn't know about it and can't find those 101 references to big_picture.jpg that just got moved (of course you can do it with a find/replace, but this does not handle relative links).
<br><br>One obvious solution is move it with SVN, then do a find / replace in textmate.<br><br>But that doesn't handle relative links (../../../img/myimages/little_picture.jpg being the same as ../myimages/little_picture.jpg)
<br><br>So how do you do it? I think my answer lies in regex.....<br><br>Does anyone have a solution out there to this particular problem?<br><br>Regards<br><br>Mikel<br></blockquote><br></div><div><br></div></span></div>
<div>I handle all of my svn in TextMate or the terminal. SVNX is way too slow and gets in my way.</div><div><br></div><div>Way back in the day I totally relied on that feature of dreamweaver. But I haven't needed anything like that in a long long time now.
</div><div><br></div><div>Personally, if I had to do it now I would just do it manually.</div><div>svn rename the file, commit, svn up.</div><div>Then I'd do a project wide search for the filename I just renamed and if that was the only file names that then it's easy. But if it's like
index.html and there are a thousand references to it, I'd just keep from having to do this at all costs.</div><div><br></div><div>If you really do this sort of thing often then you could write some scripts to help automate it. But I'm sure dreamweaver hat lots of code in there to understand all of the links that you'd have to either rewrite yourself for textmate or just fake with complex regex.
</div><div><br></div><div>You best bet is to avoid this sort of thing at all costs. ;)</div><span class="sg"><div><br></div><div><div>thomas Aylott — <b>subtleGradient </b>— CrazyEgg — sixteenColors</div></div></span></div>
<br><br>______________________________________________________________________<br>For new threads USE THIS: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com
</a><br>(threading gets destroyed and the universe will collapse if you don't)<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.macromates.com/mailman/listinfo/textmate" target="_blank">
http://lists.macromates.com/mailman/listinfo/textmate</a><br></blockquote></div><br>