-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 3/4/2015 6:02 PM, Ron W wrote:
> Fossil can act as a FUSE server. I haven't tried it, so I don't
> know if it's possible to check-in files by writing them in to the
> mounted file system.

"This command uses the Fuse Filesystem to mount a directory at DIRECTORY
that contains the content of all check-ins in the repository.  The names
of files are DIRECTORY/checkins/VERSION/PATH where DIRECTORY is the root
of the mount, VERSION is any valid check-in name (examples: 'trunk' or
'tip' or a tag or any unique prefix of a SHA1 hash, etc) and PATH is the
pathname of the file in the check-in.  If DIRECTORY does not exist, then
an attempt is made to create it."

Fuse support in Fossil is read-only.  It's useful for viewing checked-in
files using non-Fossil programs such as diff or grep or vim or any fancy
directory comparison tool, and that's about it.  I can't imagine what a
writable Fossil Fuse could sanely do that can't be done with a normal
filesystem.

Fossil commit is a high-level concept which can't be comfortably
represented in the OS's filesystem API.  Mapping POSIX file writes to
Fossil commits writes would yield a messy timeline full of intermediate
versions; temporary files; editor swap files; spurious adds, deletes,
renames; exactly one file per commit; and no comments or merges or tags.

grep, find, and the like can be used on a Fossil Fuse mount, but only
within versions explicitly specified by the user.  They can't search
through "all" versions unless the user supplies the complete list of
versions.  This list can be obtained with commands like:
$ fossil finfo -b -W 0 FILENAME | sed 's/ .*//'
$ fossil timeline -n 0 -W 0 | sed -nr '/^\S+ \[(\S+)\].*/s//\1/p'

I'm not saying Fuse support has no room for improvement, only that it
should remain read-only.  One thing to remember is that Fuse isn't tied
to a particular checkout, so it's not even clear where changes would go.

I've considered a few possible improvements, but they are either bloat
(features in search of an application) or have a fatal corner case.

- -- 
Andy Goth | <andrew.m.goth/at/gmail/dot/com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJU+MGIAAoJELtYwrrr47Y4f0kH/02L/5MXKUXNVfuzJaNOYCse
fJA7U+Xu3nHcGolMQxz/Di9kQ+1KvM9jJb2aJskMxBAJtu7LvcvPgb3AeUKeLWOR
l4hNtrOknIHs5HvKevcKi30yNVX3bCfRkq8q6Ngey9QxX5VnD4m9oNGUh9Y9JF/i
pqZ+ZNs9a4DtfJVaMQa4y9dkcCiavPfRgm6IMS6VRq14CrWtSQMbfAT2l2fKs3wD
oX6jN/Ic6Ivd3g3ElshYQAS4Uxz6O91O1ba5iRgV1u5ua8mSHIeXTVGFk+zeUwqG
Z+xIbE4RLoRj9mIrKgGL3e+Pa8Zmoq8IwWS3/Ms2GF/31iHca9UqPqvOHhd1ZGA=
=p8OC
-----END PGP SIGNATURE-----
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to