Re: [fossil-users] 'fossil open' and existing local 'manifest' and 'manifest.uuid' files

2018-08-08 Thread Artur Shepilko
> Maybe it should only delete these files when you say “fossil set manifest 0”?

Thanks for the info.
I also looked up where this happens in the code (manifest_to_disk() in
checkout.c 
[http://fossil-scm.org/index.html/artifact?udc=1=30d687f7642ce389=136])

One way to get around this automatic deletion (when creating a new
repo with files already in the work directory) is to use 'fossil open
--empty' flag, though such use is somewhat non-intuitive.

I wonder if before deleting the local manifest files we should test if
the repo is freshly created and is empty (How?).
This would at least give the user a chance to decide what to do about
these manifest files and the "manifest" setting.
Otherwise the manifest files just surprisingly disappear.

BTW, I discovered this behavior while trying to populate a new repo
with the contents of a downloaded current Fossil master tarball. It
would add all files without any warnings, then it would just fail to
build due to missing 'manifest.uuid' needed to gen the VERSION.h. Yet
the 'manifest.uuid' is included in the tarball.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] 'fossil open' and existing local 'manifest' and 'manifest.uuid' files

2018-08-08 Thread Warren Young
On Aug 7, 2018, at 8:51 PM, Artur Shepilko  wrote:
> 
> When executing 'fossil
> open' for a newly created repo, if there're any existing local files
> named "manifest" and "manifest.uuid"  these get deleted.

Those files are generated by Fossil when you have the default-off setting 
“manifest” enabled.

I’m guessing that Fossil sees the files there, sees that “manifest” is 
disabled, so it assumes they were left by a previous run with the setting 
enabled and cleans them up.

Maybe it should only delete these files when you say “fossil set manifest 0”?
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users