Closed (duplicated)
(duplicated)
Add comparison of a folder with its specific revision (not latest one)
It would be very useful to compare current folder state with a specific revision. For example, if one needs to review changes made to a branch.
It seems that meld already has some related code (in version 3.20.4). For example, in vc/svn.py
:
def get_path_for_repo_file(self, path, commit=None):
if commit is None:
commit = "BASE"
else:
raise NotImplementedError()
if not path.startswith(self.root + os.path.sep):
raise _vc.InvalidVCPath(self, path, "Path not in repository")
path = path[len(self.root) + 1:]
args = [self.CMD, "cat", "-r", commit, path]
return _vc.call_temp_output(args, cwd=self.root)
However in the latest version -r
parameter is removed:
args = [self.CMD, "-q", "update", "-p", path]
Do you plan to remove the code related to revision selection?
This function seems very useful, because there is no a simple Linux tool to compare revisions of whole folders.