https://bugs.kde.org/show_bug.cgi?id=375004

            Bug ID: 375004
           Summary: Allow opening a specific revision of a file
           Product: kdevelop
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: VCS: git
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: jonathan.ver...@gmail.com
  Target Milestone: ---

Sometimes I would find it handy to allow viewing a specific revision of a file
(e.g. git show rev:path) in the editor (readonly, of course). 

Example usecase:

  -- I am doing a rewrite of a feature. I am working in a feature branch so I
can commit Work in Progress stuff without worrying about breaking stuff. At
some point I realize, that the changes I did do not work and I'd like to see
how the original code worked. I open the stable branch version of a file in a
new editor tab (or a split view) and see how its done.

  -- I am rewriting the code in a file. After deleting some parts, I realize   
 that I deleted too much and would like to back-up a bit. I don't want
to do a full revert, though. So I open the schecked-in revision of the file
in a new editor window and copy the stuff I need back into my working copy.

Possible UI:

In the project-files view, add a context menu entry "Open a VCS revision"
(or "Open a previous version" which is not as accurate, but maybe more
understandable?). This context menu entry would bring up a widget allowing
me to select a specific revision. The widget should by default only show
revisions where the file has changed. It would probably be nice if each
revision had its commit message visible.

This is somewhat similar to the available "Show differences" action, except
that the "Show differences" opens the review mode (I am not very familiar with
how this is supposed to work and there is not much documentation --- its not
clear what finish review means, the export diff button is grayed out and the
update button seems to do nothing) and the Overview window shows the diff,
which makes copy-pasting somewhat painful---because the interesting lines are
preceded by + or - signs. Also it is limited to showing the diff between the
working version and HEAD.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to