Edgewall Software

Ticket #2239 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Cannot view history of files which have been moved

Reported by: Dave Matthews Owned by: cboos
Priority: normal Milestone: 0.9
Component: version control/browser Version: 0.9b2
Severity: normal Keywords:
Cc:

Description

source:trunk/wiki-macros/HelloWorld.py demonstrates the problem. You can view the full history of the latest version by enabling the follow copies option. From there you can view rev 1519. However, if you then try to view the revision history of that version it only shows adds, moves and deletes so you only see rev 167 and rev 1636. If you try to enable follow copies this get ignored (even though it is selected in the URL). You can view the change history of the file if you manually enter rev 1519 but there is no way to get to this from the web interface.

Attachments

Change History

Changed 3 years ago by cboos

  • owner changed from jonas to cboos
  • status changed from new to assigned
  • milestone set to 0.9

The problem is that the Revision Log link doesn't specify the start revision, so the latest revision is used. Since there's no such path at the latest revision, the Revision Log view fallbacks to the shows adds, moves and deletes mode.

Note that this is not true with the current trunk anymore: now, you'll get an explicit error message, see #2110).

The fix would be that the Revision Log link should also specify the revision at which to start:

  • browser.py

     
    101101                           if not name in hidden_properties]), 
    102102            'href': util.escape(self.env.href.browser(path, rev=rev or 
    103103                                                      repos.youngest_rev)), 
    104             'log_href': util.escape(self.env.href.log(path)) 
     104            'log_href': util.escape(self.env.href.log(path, rev=rev)) 
    105105        } 
    106106 
    107107        path_links = get_path_links(self.env.href, path, rev) 

Changed 3 years ago by cboos

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r2382.

Add/Change #2239 (Cannot view history of files which have been moved)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.