I like blogging from time to time, but I wish I could do things the way I like. One issue I have with having my blog here on wordpress is that I don’t have a local copy of it on my machine & it isn’t versioned in a repository (which has basically become my obsession). I wanted to find a solution that gave me these two things, and the flexibility to do anything else (such as in what markup to write the posts). Continue Reading
vcs
All posts tagged vcs
I have an issue in both the projects that I’m currently involved in and it has to do with debugging issues in previous versions of the application. In essence I cannot run an older version the application as my current database schema is newer than the model objects that map to it. Essentially I need a way to rollback a few database migration scripts so that I can run the application, or alternatively recreate a fresh database. This later solution should always be available, but as of now neither of them can be done. If the version I’m trying to run is the current production’s version, fortunately I can use a SQL dump of the production database to fix my error and allow the application to run. Continue Reading
- cp .gitignore .hgignore
- .hgignore: prepend syntax:glob: sed -i ‘1i syntax: glob\n’ .hgignore
- .hgignore: sort: sed -i ‘1,2d’ .hgignore && LC_ALL=C sort .hgignore && sed -i ‘1i syntax: glob\n’ .hgignore
- echo “Gemfile.lock” >> .hgignore
- (echo ‘*.swp’ >> .hgignore; echo ‘.idea/’ >> .hgignore)
- find . -name ‘.git*’ -delete
- find . -type d -empty -exec touch {}/.keep \;
- hg init
- hg ci -Am ‘Generate project, setup .hgignore & remove .git*’
(Edit: Split add header and sort, otherwise it trunks the first 3 lines of .hgignore prematurely)
(Edit: Simplify the two modification 1-liners using sed)
I was reading Martin Fowler’s Feature Branch article (as well as the linked Branch by Abstraction article) and it made me think of an idea.
What if there was a Continuous Integration Server that checked branch integration as well? A Continuous Branch Integration Server (CBIS) perhaps?! I’ll use an example to explain, instead of just blabbing about it 😀 Continue Reading