Exception when selecting "diff with PREV" on an added file
I selected "diff this changeset with PREV" on a file that had been added in the current changeset. Obviously there is no previous version to diff against, but failing with an Svn::Error::FsNotFound exception isn't exactly graceful. ;)
We're running Warehouse 1.1.7. Below is the error message and trace:
Svn::Error::FsNotFound in Changesets#diff
Showing changesets/diff.html.erb where line #6 raised:
subversion/libsvn_fs_fs/tree.c:690 File not found: revision 71564, path '/path/to/my/file'
Extracted source (around line #6):
3:
4: <%= render :partial => "browser/control_center", :locals => { :node => @node } %>
5:
6: <%= unified_diff = unified_diff_for @node, :old_rev => params[:r] -%>
7: <% if unified_diff.blank? -%>
8: <p>No diff data found for <%=h @path %> <%= @node.check_revisions(params[:r], @node.revision) * "-" %></p>
9: <% end -%>
RAILS_ROOT: /home/warehouse/releases/warehouse-1.1.7
/usr/lib/ruby/site_ruby/1.8/svn/util.rb:86:in `svn_fs_node_prop'
/usr/lib/ruby/site_ruby/1.8/svn/util.rb:86:in `node_prop'
/usr/lib/ruby/site_ruby/1.8/svn/fs.rb:336:in `node_prop'
/usr/lib/ruby/site_ruby/1.8/svn/fs.rb:622:in `_binary?'
/usr/lib/ruby/site_ruby/1.8/svn/fs.rb:573:in `binary?'
app/models/node.rb:142:in `unified_diff_for'
app/helpers/changesets_helper.rb:14:in `unified_diff_for'
app/views/changesets/diff.html.erb:6:in `_run_erb_47app47views47changesets47diff46html46erb'
app/controllers/application.rb:214:in `set_context'
app/controllers/application.rb:213:in `set_context'
/usr/bin/mongrel_rails:19:in `load'
/usr/bin/mongrel_rails:19
Discussions are closed to public comments.
If you need help with Lighthouse please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac