gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] file-limited commit on new file


From: Tom Lord
Subject: Re: [Gnu-arch-users] file-limited commit on new file
Date: Fri, 2 Jan 2004 14:43:44 -0800 (PST)


    > From: "Robert Anderson" <address@hidden>

    > I don't see any reason why you shouldn't be able to do a
    > file-limited commit like:

    > tla commit -- file1

    > when file1 is a new file.  

Consider some edge cases:

~ the new file is in a directory which doesn't exist in the
  immediate ancestor revision

~ the new file has the same name as some other file in the 
  immediate ancestor revision

Neither of those are necessarily insurmountable problems -- but it is
a substantial amount of work to make sure that they are solved and
that there are no unanticipated edge cases.   And simultaneously, the
resulting partial commit has to have a behavior that won't surprise
users too badly.

The most promising progress in that general direction can be found in
the thread from Nov 2003, "semantics of restricted mkpatch" (and
related messages) with Denys Duchier -- however, there's still a fair
amount to do there and no guarantee that it will work out nicely.

Meanwhile, you can accomplish the effect you want by playing around
with undo/redo for a bit --- not as convenient, to be sure, but also
butt-simple semantics.   Seems like not a bad situation for what is
hopefully not your most common use-case.

-t






reply via email to

[Prev in Thread] Current Thread [Next in Thread]