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

On 05/06/2013 11:27 AM, Jan Nijtmans wrote:

> However, I think it would still be a good idea to make "fossil clean"
> undo-able, but only for files <10M and only for files not matching
> either "--keep" or "--ignore". That should address Richard's remark.
> My current idea would be:
>
> - For files matching "keep-glob", don't ever remove!
> - For files matching "ignore-glob", remove them without asking
>   for confirmation and don't take a snapshot for "undo"
> - For files >10M not matching --keep or --ignore, do as before: prompt
>   before deletion and warn that the deletion will not be undoable.
> - For files <10M not matching --keep or --ignore, delete them
>   (and print it out!), but first take a snapshot in the "undo" table.
> - If -f|--force is specified, don't ask for confirmation ever and
>   don't make any snapshots for "undo". But "keep-glob" and
>   "ignore-glob" should be respected.
>
> I will experiment with this, in order to see if this is practically useful.
> Feedback appreciated!

I, for one, heartily endorse this change.

Semi-relatedly, I have an ignore glob set that ignores "*~" backup files
that Emacs makes, as many do. However, I often work in a pattern of
creating a bunch of files with the same base name and different
extensions - such as foo.c and foo.h - and then have to do "fossil add
foo.c foo.h" as "fossil add foo.*" will pick up the .c~ and .h~ files as
well as the .c and .h. Even if I put an explicit "--ignore" on the
command line, which I am presuming is only applied when fossil recurs
into a subdirectory and gets its own directory listings of files.

So, should "fossil add" automatically strip (perhaps with a warning)
files passed to its command line that match the ignore-glob, unless a
"--force" is specified?

ABS

- --
Alaric Snell-Pym
http://www.snell-pym.org.uk/alaric/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJRiOjvAAoJENVnbn/DjbpJi4UP/3zejHgAzCcyMrFNKZTB4gNl
j7T2TtDI1zZbVdfWm8RdshYah1GT8P/uBSBFtJ0JWVSjiY6/JV/8GD/J/XngReer
h5pLnC2H3ywE2SWBfgq63LlBQcDlllNBRdcGOFH/RGkjzpcVcAwae974VFChb1xN
oDCvtWOVZA4sJ9yZRgTejJX8uUntQtor/dTEBY5FVER5vIRvpOqfv4I1/OysrXEP
Sauca3QCi0xkplsZCTX9zL9DK+SKovUW35nCIV2xFxizOksM3YrIyjQi3exVxZXE
EOc+Cm1WRcQKm+ERrHUQoRek1yofVI1nxZmarv4KI2+IQJq/l7Tw9AexrSsDUEu1
j8m/pRRmo7XRRx7d3cIFOacR2xUOUISgdlHHUC68TT6/U1liAKuVV+9pxKv8yvve
UA76HPh2j6XtHbRGcsxFbGtDfiA3v5jRVZFqkKm4kltrRkigELN1P1Xy1w3vKqxL
Iw7ZGN8JUNnh1PfLx6Ry0HMPB69RLBQ6ULkD/SrLCaS2a+K6fB/AUC+Q4w9HkFvI
2kZmKZ0Db/SWXX3WFfjAsZ8kkBZdAXhxo82X3SU3xo+scu+es0q4g3w6GZ9nx/OR
Y0c6xyB4Ww4wxd45eq1OcstgM61s1vdedHDG5b8GHJvZRas6e7JixlfX6JxQEwdo
+WXDiWRZfOSGkkYUjRI3
=MqXw
-----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