Pages
-
Recent Posts
-
Recent Comments
- Introducing Maker Party 2013. Join the open online course. Building Webmaker 2.0. | openmatt on Thought experiment: letting git normalize whitespace
- Lonnen on Thought experiment: letting git normalize whitespace
- CAFxX on Thought experiment: letting git normalize whitespace
- Simon on Thought experiment: letting git normalize whitespace
- Jesper Kristensen on Thought experiment: letting git normalize whitespace
Categories
- Baking
- CDOT
- Come on!
- Critics
- Digital Swag
- DPS909
- DXR
- Experiments with audio
- family
- Food
- FSOSS
- Home School
- Idea Factory
- Implementing Mouse Lock
- Implementing WebVTT
- Introversion
- MoFoDev
- Mozilla
- Mozilla Education
- Nature
- Processing.js
- Reading
- Seneca
- Teaching Open Source
- Uncategorized
- VncSharp
- Web Made Movies
- Webmaker
- Wireless
Archives
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
Quality Time with Mercurial
In an effort to fix my current failing workflow, I’m trying to really learn how to use Mecurial well. My main problem is that I’m fixing a whole bunch of bugs that cluster in a set of files, and the changes are sometimes dependent, sometimes not. I’ve had to resort to hand editing diffs and other tricks that are causing Chris Tyler to shake his head at me.
So I’m reading the hg-book, and a bunch of other sites recommend by my hg-elders: Jason Orendorff, Ben Hearsum, Ted Mielczarek, and Benjamin Smedberg. It’s been interesting to spend some time really getting to know it, and I’m already more productive.
Here’s an example, albeit a simple thing (that’s what you learn by taking your time, the simple things). If you have a clone on disk, you can clone it again and hg will use hard links and copy-on-write to save you space (important with a mozilla hg clone). So, if you want to do something dangerous to your existing repo, you can clone it like so:
$hg clone existing-repo new-repo
Now you have hard links back to your existing-rep, and only when you make changes in new-repo is a new file created. It’s a cheap way to try something and not worry about killing your repo.