[TxMt] SVN, Save Project, Regex search and replace

MattMecham mattmecham at gmail.com
Thu Jun 19 12:27:13 UTC 2008


Our development team has been tracking some odd behaviour with SVN commits
and updates.

We are primarily a three man team and we all commit code into our repo which
works well.

However, we've noticed that after I perform a project wide search and
replace using regex and then commit, the data committed is not from the
current file. The regex replacements are actually carried out on what
appears to be a copy of the file from the last "Save Project" date.

For example:
"appCaches.php" is a file maintained by subversion. Download the files,
here: http://www.mattmecham.com/images/appcachefiles.zip
r#1355 was made by me on 21st May - which coincides with the last time I
chose "Save Project" even though I choose "Save All" regularly.
r#1479 was committed by a member of the development team adding data to the
file. Although I chose rev 1479, this file was committed around 1450ish and
hasn't changed until I did my global search and replace, so it's not just a
one revision increment problem.
r#1480 was made by me after performing a global search and replace. As you
can see, it's actually performed a search and replace on r#1355, not r#1479!

What does TextMate do when you choose "Save Project"? I thought it just
updated the xml file containing data about open files. Does the regex search
and replace work on cached copies anywhere?

Thanks
-- 
View this message in context: http://www.nabble.com/SVN%2C-Save-Project%2C-Regex-search-and-replace-tp18005766p18005766.html
Sent from the textmate users mailing list archive at Nabble.com.




More information about the textmate mailing list