On Wed, 2011-12-21 at 18:41 +0100, Dmitry Chestnykh wrote:
> On Wed, 21 Dec 2011 12:30:16 -0500 Jeremy Cowgar wrote:
> 
> > I’m in the same boat, doing two actions for every one in other SCM
> > systems, however I do not do it dozens of times a day, so I’ve always
> > just done it with a little gnashing of the teeth.
> 
> If we're having a vote, +1. I'd like it if rm and mv actually deleted
> and renamed files.
> 
> On Wed, 21 Dec 2011 12:25:19 -0500 Richard Hipp wrote:
> 
> > I fear to change it now, though, since it might really mess up people
> > who are used to the older style.
> 
> I think this won't cause major problems, because the files are version
> controlled, after all. Or we can have a flag for "destructive" behavior
> for compatibility (but habits aside, it's better to have a flag for
> "non-destructive" behavior).
> 

Well here's a fun thing that just happened:

tif@w...:~/Projects/ACSS/project$ fossil extra | grep -v db/
site/common/classes/document_manager.php
tif@w...:~/Projects/ACSS/project$ fossil extra | grep -v db/ | xargs
fossil add
ADDED  site/common/classes/#document_manager.php#
ADDED  site/common/classes/document_manager.php

So in the time it took me to type up-arrow | xargs fossil add my editor
pulled an auto-save, and fossil added (2) files instead of one. Now I've
got:
  1. a file in my repo that I don't want
  2. and it's not under version control, so I can't get it back if
fossil deletes it

It's a simple fossil rm away from being solved, but ...

Assume a destructive fossil rm, and let's say the file is precious
rather than just an autosave file. Lots of ways to get around the auto
delete, but not necessarily obvious ones and someone, somewhere is going
to learn how it works the first time by having fossil delete their file
unexpectedly.

Nope, I suddenly find myself a fan of the two step process as it stands.

--
Themba Fletcher



_______________________________________________
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