How to Delete Untracked Files in a Mercurial Repository
Working around Firefox at Mozilla means that you need to get acquainted with mercurial, the version control system that rivals git and svn. Like any tool, hg
(mercurial) can be difficult until you're well versed with it. And if you hg import
a URL that doesn't match up with what's in the repo, you'll get a bunch of *.rej
files that in your directory structure that show up every time you hg status
. Gross.
If you want to start from scratch and remove all those unwanted files, there are two steps. The first step is enabling the purge
extension within your ~/.hgrc
file:
[extensions]
purge=
With the purge
extension available, it's as easy as running hg purge
to get rid of all of the unwanted files:
hg purge
With those unwanted files gone, it's easy to get back to the business of being productive with as few useless obstructions getting in your way!
I remember the early days of JavaScript where you needed a simple function for just about everything because the browser vendors implemented features differently, and not just edge features, basic features, like addEventListener
and attachEvent
. Times have changed but there are still a few functions each developer should...
CSS and JavaScript: the lines seemingly get blurred by each browser release. They have always done a very different job but in the end they are both front-end technologies so they need do need to work closely. We have our .js files and our .css, but...
Counters. They were a staple of the Geocities / early web scene that many of us "older" developers grew up with; a feature then, the butt of web jokes now. CSS has implemented its own type of counter, one more sane and straight-forward than the ole...
I'm a huge fan of WordPress' method of individual article deletion. You click the delete link, the menu item animates red, and the item disappears. Here's how to achieve that functionality with MooTools JavaScript.
The PHP - Content & Header
The following snippet goes at the...