Edgewall Software
Modify

Opened 10 years ago

Closed 10 years ago

Last modified 6 years ago

#12021 closed enhancement (fixed)

Render Mercurial rebase and amend properties

Reported by: Peter Suter Owned by: Peter Suter
Priority: normal Milestone: plugin - mercurial
Component: plugin/mercurial Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Peter Suter)

Mercurial rebase and amend properties could be supported:

diff -r 779abf179cee tracext/hg/backend.py
--- a/tracext/hg/backend.py     Sat Mar 28 10:40:23 2015 +0100
+++ b/tracext/hg/backend.py     Fri Apr 03 10:55:10 2015 +0200
@@ -298,13 +298,18 @@
     implements(IPropertyRenderer)
 
     def match_property(self, name, mode):
-       return name in ('hg-transplant_source', 'hg-convert_revision') and \
+       return name in ('hg-transplant_source', 'hg-rebase_source',
+                       'hg-amend_source', 'hg-convert_revision') and \
            mode == 'revprop' and 4 or 0
 
     def render_property(self, name, mode, context, props):
         repos, value = props[name]
         if name == 'hg-transplant_source':
             return render_source_prop(repos, context, _("Transplant:"), value)
+        elif name == 'hg-rebase_source':
+            return render_source_prop(repos, context, _("Rebase:"), value)
+        elif name == 'hg-amend_source':
+            return render_source_prop(repos, context, _("Amend:"), value)
         elif name == 'hg-convert_revision':
             text = repos.to_u(value)
             if value.startswith('svn:'):

Attachments (0)

Change History (4)

comment:1 by Peter Suter, 10 years ago

Owner: set to Peter Suter
Status: newassigned

comment:2 by Peter Suter, 10 years ago

Description: modified (diff)
Summary: Render Mercurial rebase propertiesRender Mercurial rebase and amend properties

comment:3 by Peter Suter, 10 years ago

Resolution: fixed
Status: assignedclosed

comment:4 by Peter Suter, 6 years ago

There's also histedit_source.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Peter Suter.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Peter Suter to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.