changing repository history

Steve Borho steve at borho.org
Fri Aug 31 14:37:04 CDT 2007


On Fri, 2007-08-31 at 10:32 -0700, Charles Samuels wrote:
> On Friday 2007 August 31 04:45:51 am Manlio Perillo wrote:
> > 2) Is is possible to exclude "sections" of a repository?
> >     I have a repository converted from Subversion with this layout
> 
> I would like to be able to change the last commit message made, before the 
> push. So many times I think "oh, I forgot to say /this/ in my commit log".
> 
> Sounds a bit tricky to implement though too.

It's possible to edit the tip revision's commit message if you've not
yet pushed it to another repository.  You need need to temporarily pull
the revision into MQ.

hg qinit           # only need to do this once
hg qimport -r tip  # Pull tip revision into patch queue
hg qrefresh -e     # Edit commit message
hg qdelete -r tip  # Remove revision from patch queue

-- 
Steve Borho (steve at borho.org)
http://www.borho.org/~steve/steve.asc
Key fingerprint = 2D08 E7CF B624 624C DE1F  E2E4 B0C2 5292 F2C6 2C8C




More information about the Mercurial mailing list