Button / menu entry to update the repository to the tip / head of the current branch

1 view
Skip to first unread message

Stephan Tepper

unread,
Mar 11, 2012, 2:04:14 PM3/11/12
to thg...@googlegroups.com
Hi,

Attached you will find a patch which implements a new function to update the repository to the tip (if the repo has several branches, to the tip of the current branch). I was not sure where to place the button and where to add the menu entry. If you want me to change the location of the button / menu entry, I can do that. If you have other things which should be changed please let me know.

Regards,
Stephan
12639.patch

Angel Ezquerra

unread,
Mar 11, 2012, 3:02:16 PM3/11/12
to thg...@googlegroups.com

I'm not sure there is a need for this. We don't even have a button to update to the selected revision. Why have one to update to the most recent branch head?

What would be more interesting though, and this is something I've been thinking about for a while, is to be able to customize the toolbar with extra buttons which could execute any external command, including mercurial commands. This would make it easy to do what you suggest in this patch, while being a much more generic solution.

Angel

Steve Borho

unread,
Mar 11, 2012, 6:34:05 PM3/11/12
to thg...@googlegroups.com
On Sun, Mar 11, 2012 at 2:02 PM, Angel Ezquerra <ezqu...@gmail.com> wrote:
>
> On Mar 11, 2012 7:39 PM, "Stephan Tepper" <s.te...@gmx.net> wrote:
>>
>> Hi,
>>
>> Attached you will find a patch which implements a new function to update
>> the repository to the tip (if the repo has several branches, to the tip of
>> the current branch). I was not sure where to place the button and where to
>> add the menu entry. If you want me to change the location of the button /
>> menu entry, I can do that. If you have other things which should be changed
>> please let me know.
>>
>> Regards,
>> Stephan
>
> I'm not sure there is a need for this. We don't even have a button to update
> to the selected revision. Why have one to update to the most recent branch
> head?

Actually we do, but it is on the toolbar of the revision details tab.

> What would be more interesting though, and this is something I've been
> thinking about for a while, is to be able to customize the toolbar with
> extra buttons which could execute any external command, including mercurial
> commands. This would make it easy to do what you suggest in this patch,
> while being a much more generic solution.

That could be quite handy.

--
Steve Borho

Angel Ezquerra Moreu

unread,
Mar 12, 2012, 9:24:03 AM3/12/12
to thg...@googlegroups.com
On Sun, Mar 11, 2012 at 11:34 PM, Steve Borho <st...@borho.org> wrote:
> On Sun, Mar 11, 2012 at 2:02 PM, Angel Ezquerra <ezqu...@gmail.com> wrote:
>>
>> On Mar 11, 2012 7:39 PM, "Stephan Tepper" <s.te...@gmx.net> wrote:
>>>
>>> Hi,
>>>
>>> Attached you will find a patch which implements a new function to update
>>> the repository to the tip (if the repo has several branches, to the tip of
>>> the current branch). I was not sure where to place the button and where to
>>> add the menu entry. If you want me to change the location of the button /
>>> menu entry, I can do that. If you have other things which should be changed
>>> please let me know.
>>>
>>> Regards,
>>> Stephan
>>
>> I'm not sure there is a need for this. We don't even have a button to update
>> to the selected revision. Why have one to update to the most recent branch
>> head?
>
> Actually we do, but it is on the toolbar of the revision details tab.

You are right. What I meant is that there is no update button on the
workbench toolbar.

>> What would be more interesting though, and this is something I've been
>> thinking about for a while, is to be able to customize the toolbar with
>> extra buttons which could execute any external command, including mercurial
>> commands. This would make it easy to do what you suggest in this patch,
>> while being a much more generic solution.
>
> That could be quite handy.

I went ahead and finished a patch series that I had unfinished for a
while. I'll send it later today for review. It adds a new toolbar to
the workbench, where a user can place buttons that will execute custom
commands. These are configured via by manually editing the tortoisehg
section of the mercurial user configuration file (i.e. there is no
configuration GUI yet).

Cheers,

Angel

Reply all
Reply to author
Forward
0 new messages