File Status after pull
Stuart W. Marks
smarks at smarks.org
Mon Jul 13 14:17:04 CDT 2009
mail at fabiantriefenbach.de wrote:
> Is it possible to check if a special file (or folder) gets updated with
> a pull and do special operations if so?
You could separate the pull and update operations, and put a test for this file
in between. For example:
hg pull
if hg status --rev .:tip FILE | egrep FILE > /dev/null ; then
: FILE has changed
else
: FILE has not changed
fi
hg update tip
(This assumes that you're always updating to tip. If you have branchy
development, you'll want to substitute the branch name for tip.)
s'marks
More information about the Mercurial
mailing list