[issue3283] command to turn the top mq patch into working directory changes
bugs at mercurial.selenic.com
Sun Feb 26 06:37:50 CST 2012
New submission from Ben Schmdit <insightful_schmidt at yahoo.com.au>:
It would be nice to have a command to turn the topmost mq patch into changes
in the working directory (i.e. no longer a changeset or patch under mq
control, but the changes still present). This means you can then selectively
commit files or use hg record to split it into multiple changesets or
patches. At the moment I am trialling this hacky shell script to do it for me:
# a shell script implementation of possible 'hg qforget' command
# which turns the topmost mq patch into working directory changes
PATCH="`hg qapplied | tail -1`"
QUEUE="`hg qqueue --active`"
if [ ! "$QUEUE" = patches ] ; then
hg qpop && \
hg import --no-commit "$ROOT/.hg/$QUEUE/$PATCH" && \
hg qdelete "$PATCH"
title: command to turn the top mq patch into working directory changes
Mercurial issue tracker <bugs at mercurial.selenic.com>
More information about the Mercurial-devel