Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

bazaar

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).

like image 303
Trent Avatar asked Dec 05 '25 10:12

Trent


1 Answers

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/
like image 126
bialix Avatar answered Dec 07 '25 15:12

bialix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!