Re: [support]: changing author of a commit when rewriting history

2020-12-05 Thread Antonio Muci via Mercurial-devel

Thanks you all.

I ended up using hg metaedit.

Antonio


On 04/12/20 06:03, Manuel Jacob wrote:

On 04/12/2020 01.10, Antonio Muci via Mercurial-devel wrote:

Hi,

sorry for taking over the list, I have a lame support question.

I am struggling to find a way to change the author of a commit.
I do a lot of history rewriting, and "hg histedit --interactive" is 
invaluable in this regard.


Since histedit --interactive does not support changing the author (or 
the timestamp) of a commit (am I right here?), for doing those sort 
of actions I usually go back to mq.



In this case my history is "peculiar": linear DAG, but with different 
named branches interleaved, like this:


o  changeset:   3:z
|  branch:  branch1
|  user:    authorY
|
o  changeset:   2:y
|  branch:  branch2
|  user:    authorX
|
o  changeset:   1:x
|  branch:  branch1
|  user:    authorToBeChanged


Mq was probably not designed for this use case, and keeps messing 
with my named "branches". Moreover, I'd prefer not to use it.


Is there a documented way of sanely doing this in modern mercurial?


I’d use `hg metaedit` from the evolve extension.



Many thanks
Antonio
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel



___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [support]: changing author of a commit when rewriting history

2020-12-03 Thread Manuel Jacob

On 04/12/2020 01.10, Antonio Muci via Mercurial-devel wrote:

Hi,

sorry for taking over the list, I have a lame support question.

I am struggling to find a way to change the author of a commit.
I do a lot of history rewriting, and "hg histedit --interactive" is 
invaluable in this regard.


Since histedit --interactive does not support changing the author (or 
the timestamp) of a commit (am I right here?), for doing those sort of 
actions I usually go back to mq.



In this case my history is "peculiar": linear DAG, but with different 
named branches interleaved, like this:


o  changeset:   3:z
|  branch:  branch1
|  user:    authorY
|
o  changeset:   2:y
|  branch:  branch2
|  user:    authorX
|
o  changeset:   1:x
|  branch:  branch1
|  user:    authorToBeChanged


Mq was probably not designed for this use case, and keeps messing with 
my named "branches". Moreover, I'd prefer not to use it.


Is there a documented way of sanely doing this in modern mercurial?


I’d use `hg metaedit` from the evolve extension.



Many thanks
Antonio
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [support]: changing author of a commit when rewriting history

2020-12-03 Thread Antonio Muci via Mercurial-devel

Thanks for providing a way forward! I'll use that.

As a avid user of histedit --interactive, it felt natural to look for 
author and timestamp editing there. Maybe I'll try to hack a proposal 
for its inclusion someday.


Thanks again.


On 04/12/20 01:38, Joerg Sonnenberger wrote:


On Fri, Dec 04, 2020 at 01:31:52AM +0100, Antonio Muci wrote:

That would be useful for the tip, thanks.

I have to to rewrite a commit that is not the last one, like commit 1 in the
example.

At least with changeset evolution enabled, you can just update to commit
1, amend it and then evolve/rebase the rest on top.

Joerg

___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [support]: changing author of a commit when rewriting history

2020-12-03 Thread Joerg Sonnenberger
On Fri, Dec 04, 2020 at 01:31:52AM +0100, Antonio Muci wrote:
> That would be useful for the tip, thanks.
> 
> I have to to rewrite a commit that is not the last one, like commit 1 in the
> example.

At least with changeset evolution enabled, you can just update to commit
1, amend it and then evolve/rebase the rest on top.

Joerg
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [support]: changing author of a commit when rewriting history

2020-12-03 Thread Antonio Muci via Mercurial-devel

That would be useful for the tip, thanks.

I have to to rewrite a commit that is not the last one, like commit 1 in 
the example.


Antonio


On 04/12/20 01:23, Joerg Sonnenberger wrote:

On Fri, Dec 04, 2020 at 01:10:38AM +0100, Antonio Muci via Mercurial-devel 
wrote:

I am struggling to find a way to change the author of a commit.

hg amend -u ?

Joerg
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [support]: changing author of a commit when rewriting history

2020-12-03 Thread Joerg Sonnenberger
On Fri, Dec 04, 2020 at 01:10:38AM +0100, Antonio Muci via Mercurial-devel 
wrote:
> I am struggling to find a way to change the author of a commit.

hg amend -u ?

Joerg
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


[support]: changing author of a commit when rewriting history

2020-12-03 Thread Antonio Muci via Mercurial-devel

Hi,

sorry for taking over the list, I have a lame support question.

I am struggling to find a way to change the author of a commit.
I do a lot of history rewriting, and "hg histedit --interactive" is 
invaluable in this regard.


Since histedit --interactive does not support changing the author (or 
the timestamp) of a commit (am I right here?), for doing those sort of 
actions I usually go back to mq.



In this case my history is "peculiar": linear DAG, but with different 
named branches interleaved, like this:


o  changeset:   3:z
|  branch:  branch1
|  user:authorY
|
o  changeset:   2:y
|  branch:  branch2
|  user:authorX
|
o  changeset:   1:x
|  branch:  branch1
|  user:authorToBeChanged


Mq was probably not designed for this use case, and keeps messing with 
my named "branches". Moreover, I'd prefer not to use it.


Is there a documented way of sanely doing this in modern mercurial?


Many thanks
Antonio
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel