[issue3283] command to turn the top mq patch into working directory changes
Ben Schmdit
bugs at mercurial.selenic.com
Sun Feb 26 12:37:50 UTC 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:
#!/bin/bash
# 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`"
ROOT="`hg root`"
if [ ! "$QUEUE" = patches ] ; then
QUEUE="patches-$QUEUE"
fi
hg qpop && \
hg import --no-commit "$ROOT/.hg/$QUEUE/$PATCH" && \
hg qdelete "$PATCH"
----------
messages: 19168
nosy: isfs
priority: feature
status: unread
title: command to turn the top mq patch into working directory changes
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3283>
____________________________________________________
More information about the Mercurial-devel
mailing list