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

Is there a way that Bazaar can automatically detect changes (add, delete, rename, etc.) made by part of the working directory and automatically apply them?

I have a directory tree in my repository that is generated by another process, so I can not execute all the commands bzr add, bzr deleteand bzr renameas the files change. Instead, I would like bzr to notice all the changes and apply them after starting this process.

The only way that I can do now is - to run bzr status, and then manually (or by writing the script) to run bzr add, and bzr deletein all these files. This will work, but I hope there is an automated method that can also determine if a file has been renamed (the added file has the same contents of the delete file).

+3
source share
3 answers

You do not need to explicitly mark files as deleted. And bzr can detect renames (either with the automv plugin or with built-in functionality):

bzr mv --auto

, , , (--no-recurse) othervise mv --auto :

bzr add --no-recurse newfolder

, :

bzr add subdir/
+5

bzr add * ? . , / - , bzr mv ( , ).

+1

, automv . , bzr add *, .

+1

Source: https://habr.com/ru/post/1729296/