Is there a way for Bazaar to automatically detect and apply changes made in a working directory?

bazaar

Solution

You don't need to explicitly mark files as deleted. And bzr can detect renames (either with automv plugin or with builtin functionality):

bzr mv --auto

Note that if you moved the files to a new folder that you just created, you have to version it, but without adding its children (`--no-recurse`), othervise `mv --auto` might fail to detect renames:

bzr add --no-recurse newfolder

Then you need to add all files which are not part of renames:

bzr add subdir/

Problem

Is there a way for Bazaar to be able to automatically detect changes (adds, removes, renames, etc.) made to part of the working directory and automatically apply them? I have a directory tree in my repository which is generated by another process so I can't do all the `bzr add`, `bzr delete`, and `bzr rename` commands as the files are changing. Instead, I would like a way to have bzr notice all the changes and apply them after this process is run. The only way I can think of doing this right now is running `bzr status` and then manually (or by writing a script) run `bzr add` and `bzr delete` on all the files listed. This will work but I am hoping there is an automated method that could also determine if a file was renamed (an added file has the same contents of a delete file).

Original source