rewrite description for existing changset

View: New views
3 Messages — Rating Filter:   Alert me  

rewrite description for existing changset

by weijun.wang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All

Is there a way to rewrite description texts for existing changeset? A  
command is good, otherwise, some python code is also ok. Please give  
me an example, I'm not familiar with python and mercurial objects. If  
there's no way, I'll have to break the repo into patches and re-apply  
the history.

I'm doing this because we've converted some huge old repo to mercurial  
for historical search. The changeset descriptions need some enhancement.

Thanks
Max

_______________________________________________
Mercurial mailing list
Mercurial@...
http://selenic.com/mailman/listinfo/mercurial

Re: rewrite description for existing changset

by Hans Meine-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 29 October 2009 05:14:39 Max (Weijun) Wang wrote:
> Is there a way to rewrite description texts for existing changeset?

Yes, a simple web search for "mercurial rewrite history" should help you.

HTH,
  Hans
_______________________________________________
Mercurial mailing list
Mercurial@...
http://selenic.com/mailman/listinfo/mercurial

Re: rewrite description for existing changset

by Jim Hague-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 29 Oct 2009 04:14:39 Max (Weijun) Wang wrote:
> Is there a way to rewrite description texts for existing changeset?

The changeset description is one of the items hashed to identify the
changeset, so you can't change it and preserve the changeset.

http://mercurial.selenic.com/wiki/EditingHistory outlines the options.
--
Jim Hague - jim.hague@...          Never trust a computer you can't lift.
_______________________________________________
Mercurial mailing list
Mercurial@...
http://selenic.com/mailman/listinfo/mercurial