[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 280789] New: Editor should automatically reload files after VCS
From:       Wolfgang Bangerth <bangerth () dealii ! org>
Date:       2011-08-25 18:38:47
Message-ID: bug-280789-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

           Summary: Editor should automatically reload files after VCS
                    commit
           Product: kdevelop
           Version: 4.2.2
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: bangerth@dealii.org


Version:           4.2.2 (using KDE 4.6.0) 
OS:                Linux

When checking files into a repository using, for example, subversion of CVS,
the
VCS sometimes modifies files. The most common cause is if the file has a $Id:$
tag at the top and the svn:keywords for this file contains the tag "Id"; in
that
case, svn will update the revision string for this file after checking it in.
CVS has a similar feature. In both cases, modifications to a file could also be
caused by a pre-commit hook that modifies the file, for example by indenting it
automatically before it is put into the repository.

In all of these cases, the file contents change when checking it in. But that
confused KDevelop: if a file is checked in that's open in an editor window,
going into it again the next time a window opens that the file has changed
and offers to reload it. That's of course what I'd like to do, but it's
annoying
that I need to explicitly say so.

The solution is simple: Whenever Kdevelop checks in a file that's open in an
editor window, let the editor window re-load the file automatically.

Thanks
 Wolfgang

Reproducible: Always

Steps to Reproduce:
Check in a file in an svn repository that has keywords for expandable text set.

For example:

cat "// $Id:$" > x.cc
svn add x.cc
svn propset svn:keywords "Id"

Then open the file in KDevelop and check this file into the repository

Actual Results:  
Dialog window opens, asking whether I want to reload the file.

Expected Results:  
Reload happens automatically.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic