mMontu / vim-vvcs

Vim VCS: Wrapper for development enviroments on remote machines
0 stars 0 forks source link

Allow VcDiff to navigate to older versions #14

Open mMontu opened 10 years ago

mMontu commented 10 years ago

It would be nice if VcDiff could display not only the difference between the current version and its predecessor, but also displayed the difference between the predecessor and its previous version.

Maybe keys - and + could be used to navigate (this information could be echoed on a message after VcDiff is open. Instead of just fetching the previous version of the file, it would be necessary to fetch the name of the current version and of the previous version, and save the previous content on a temporary file. Then it would be possible to build a list of pairs:

list<versionName, path> = [ ["checkedout", "/vobs/path/x"], ["version4", "tmpFile1"], ["version3", "tmpFile2"],

The list would allow to navigate between versions without retrieving the same file again.

mMontu commented 9 years ago

This would be specially useful on svn, as in its current form the plugin shows the diff between the current version and the last commited version, while with Clearcase it allows to see the last commit for file that aren't checked-out.