Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
commit: add 'Amend' support
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Angel Ezquerra  
View profile  
 More options Apr 25 2012, 8:03 am
From: Angel Ezquerra <angel.ezque...@gmail.com>
Date: Wed, 25 Apr 2012 14:03:43 +0200
Local: Wed, Apr 25 2012 8:03 am
Subject: [PATCH 0 of 2] commit: add 'Amend' support
This patch series adds support for the new --amend option of the hg
commit command.

This comes during the freeze because I had to wait for the mercurial
freeze before properly testing this new feature. Nevertheless I think
that we should try to support it on the next release, since 'commit
--amend' is one of the top new features on mercurial 2.2.

The actual patch which adds support for --amend is the second one. The
first patch simply adds an 'hgversionint' variable to the
tortoisehg.util.hgversion module to make it easier to compare the
current mercurial version with a given version.

In most cases one would not check the actual mercurial version, but
the existence of a given capability, but in this case there is no way
to tell whether the commit command supports amend other than checking
the actual version number.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[PATCH 0 of 2] commit: add 'Amend' support" by Steve Borho
Steve Borho  
View profile  
 More options May 3 2012, 12:59 am
From: Steve Borho <st...@borho.org>
Date: Wed, 2 May 2012 23:59:47 -0500
Local: Thurs, May 3 2012 12:59 am
Subject: Re: [thg-dev] [PATCH 0 of 2] commit: add 'Amend' support
On Wed, Apr 25, 2012 at 7:03 AM, Angel Ezquerra

You should be able to check for 'amend' in the command table in
commands.py.  I think we did this in other places but I couldn't find
them.

--
Steve Borho


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Angel Ezquerra  
View profile  
 More options May 3 2012, 1:15 am
From: Angel Ezquerra <angel.ezque...@gmail.com>
Date: Thu, 3 May 2012 07:15:41 +0200
Local: Thurs, May 3 2012 1:15 am
Subject: Re: [thg-dev] [PATCH 0 of 2] commit: add 'Amend' support

OK, I will check into that. Are you ok with the rest of the patch?

I still think it is nice to be able to check the actual mercurial
version, if only for debugging purposes. Also there may be instances
where it is just not possible or easy to check that a given capability
is available.

Angel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Borho  
View profile  
 More options May 3 2012, 1:20 am
From: Steve Borho <st...@borho.org>
Date: Thu, 3 May 2012 00:20:35 -0500
Local: Thurs, May 3 2012 1:20 am
Subject: Re: [thg-dev] [PATCH 0 of 2] commit: add 'Amend' support
On Thu, May 3, 2012 at 12:15 AM, Angel Ezquerra

Sure, looks fine

> I still think it is nice to be able to check the actual mercurial
> version, if only for debugging purposes. Also there may be instances
> where it is just not possible or easy to check that a given capability
> is available.

understood

--
Steve Borho


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Angel Ezquerra  
View profile  
 More options May 3 2012, 1:37 am
From: Angel Ezquerra <angel.ezque...@gmail.com>
Date: Thu, 3 May 2012 07:37:29 +0200
Local: Thurs, May 3 2012 1:37 am
Subject: Re: [thg-dev] [PATCH 0 of 2] commit: add 'Amend' support

I looked into checking the command table to confirm that commit has an
amend option. It is possible to do, but it is more complex that I'd
like it to.

Basically, you can do:

from mercurial import commands
commitopts = commands.table['^commit|ci']
canamend = False
for opt in commitopts:
    if opt[1] == 'amend':
        canamend = True
        break

This seems a bit complex compared to just checking the version number.
Is it worth it?

Angel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Borho  
View profile  
 More options May 3 2012, 1:51 am
From: Steve Borho <st...@borho.org>
Date: Thu, 3 May 2012 00:51:43 -0500
Local: Thurs, May 3 2012 1:51 am
Subject: Re: [thg-dev] [PATCH 0 of 2] commit: add 'Amend' support
On Thu, May 3, 2012 at 12:37 AM, Angel Ezquerra

I'm fine with a version number check, so long as it's short lived.

--
Steve Borho


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Angel Ezquerra  
View profile  
 More options May 3 2012, 4:23 am
From: Angel Ezquerra <angel.ezque...@gmail.com>
Date: Thu, 3 May 2012 10:23:24 +0200
Local: Thurs, May 3 2012 4:23 am
Subject: Re: [thg-dev] [PATCH 0 of 2] commit: add 'Amend' support

We usually only support the latest 2 mercurial versions, don't we? We
could make it a point to always remove any check for older releases
after every full release.

Angel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »