hgbook-de / de / examples / mq.tarball


cp $EXAMPLE_DIR/data/netplug-*.tar.bz2 .
ln -s /bin/true download
export PATH=`pwd`:$PATH

#$ name: download

download netplug-1.2.5.tar.bz2
tar jxf netplug-1.2.5.tar.bz2
cd netplug-1.2.5
hg init
hg commit -q --addremove --message netplug-1.2.5
cd ..
hg clone netplug-1.2.5 netplug

#$ name:

cd netplug
echo '[extensions]' >> $HGRC
echo 'hgext.mq =' >> $HGRC
cd ..

#$ name: qinit

cd netplug
hg qinit
hg qnew -m 'fix build problem with gcc 4' build-fix.patch
perl -pi -e 's/int addr_len/socklen_t addr_len/' netlink.c
hg qrefresh
hg tip -p

#$ name: newsource

hg qpop -a
cd ..
download netplug-1.2.8.tar.bz2
hg clone netplug-1.2.5 netplug-1.2.8
cd netplug-1.2.8
hg locate -0 | xargs -0 rm
cd ..
tar jxf netplug-1.2.8.tar.bz2
cd netplug-1.2.8
hg commit --addremove --message netplug-1.2.8

#$ name: repush

cd ../netplug
hg pull ../netplug-1.2.8
hg qpush -a
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.