want to store file's modification time during commit
Bug #245170 reported by
Nosto Raksi
This bug affects 11 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Wishlist
|
Unassigned | ||
Breezy |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Checkout should have an option to preserve the modification times of the files. At least in a lightweight checkout on Windows and NTFS shared over SMB, the checked out files get the time of the checkout as their modification time. I'm trying to use bzr to synchronize and backup files between my laptop and a file server. Other people can sometimes modify the files on the server while I'm working on the files on my laptop. I'm keeping the history on my laptop to save disk space on the server so I use a lightweight checkout. Having the original (and more meaningful) modification times on the server would be nice.
Changed in bzr: | |
importance: | Undecided → Wishlist |
summary: |
- file modification time not preserved by checkout + want to store file's modification time during commit |
tags: | added: new-format |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
To post a comment you must log in.
I can confirm this on ubuntu linux hardy, bzr 1.3.1 using the bzr branch command.
It is a problem for the project I'm developing, because I want to deliver test files to the end user, and the file modification times of the test files are important to the functioning of the program - it processes them chronologically.
Everything else in my development and packaging toolchain seems to preserve file modification times (setuptools, tar, dpkg, etc), so bzr is the weak link in the chain, when I or others build a distribution from a branch other than my original trunk directory.
I guess I have to either always distribute from the original directory (not great for distributed development, and more risk of including unwanted files or changes) or deliver the files inside a zip archive or the like, and unpack them at install time.
Support for preserving file metadata like create and modification times would be useful in
many circumstances.
Modification times are far more portable and far less problematic than the permission and ownership metadata discussed in https:/ /bugs.edge. launchpad. net/bzr/ +bug/67589