Opened 12 years ago

Closed 12 years ago

#19840 closed New feature (wontfix)

Traceback view: href to version control page

Reported by: Thomas Güttler Owned by: nobody
Component: Uncategorized Version: 1.4
Severity: Normal Keywords: debug_view
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It would be very good if the traceback view (in DEBUG mode) would create links
to the version control page:

Example traceback:

/home/modwork_egs_dt/djangotools/utils/formutils.py in form2str
            rows.append(formdict.field(field, td_add=td_add.get(field, '')))
/home/modwork_egs_dt/djangotools/utils/formutils.py in field
                widget_str=bf.as_widget(bf.field.widget, attrs=attrs)
/home/modwork_egs_dt/django/forms/forms.py in as_widget

The file name of the python file should be a link to the version control. Of course this can only be done after
telling django where each app has its web repository.

In the above example "djangotools" is an app which is hosted in our company at http://foo.lan/viewvc/djangotools/
The debug page would need to create a link like this http://foo.lan/viewvc/djangotools/trunk/utils/formutils.py

I don't know how to implement it. But it would be a nice feature for developers.

Change History (2)

comment:1 by Luke Plant, 12 years ago

I think this is of limited usefulness, especially given that for many developers, the version in source control is not going to be the same as the version on their machine - you are only going to be getting tracebacks on quite broken code, which usually will be much more likely to be work-in-progress code on a developer machine than in a central repo.

So I'm going to WONTFIX on that basis, and also because it would require a significant amount of set up to work at all, and is therefore not likely to be useful to the majority of users.

comment:2 by Luke Plant, 12 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top