On 5/09/2012 5:14 PM, Blair McBride wrote:
On 5/09/2012 6:13 a.m., Gregory Szorc wrote:
$ hg status -u | grep .egg-info | xargs rm -rf
$ git ls-files -o '*.egg-info*' | xargs rm -rf

Those of you on Windows will notice this doesn't work, thanks to
Windows-style paths. The following will:

$ hg status -un | grep .egg-info | sed 's/\\/\//g' | xargs rm -rf
$ git ls-files -o '*.egg-info*' | sed 's/\\/\//g' | xargs rm -rf

Another option it to use the obscure hg option:

[ui]
slash=true

This will cause hg to output most path names using a forward slash character. This is useful to me as it means I can copy/paste output from hg back into bash and have things work as expected.

As I only use bash with the mozilla-central clones, I've added this to the .hg/hgrc files in individual repos, although I believe it can also be set globally if you want to enable it once but have it work everywhere...

Mark
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to