Oct 18, 2012

Search in Mercurial project

#! /bin/bash
# grep_hg_project.sh
cd $1
hg manifest | xargs grep -nHs -E "$2" | awk -F: '{print  ENVIRON["PWD"]"/"$1":"$2":"$3}'
Usage
~/bin/grep_hg_project.sh `pwd` SomeClassToSearch

No comments: