[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] recovery from accidental file deletion
From: |
Jan Hudec |
Subject: |
Re: [Gnu-arch-users] recovery from accidental file deletion |
Date: |
Tue, 11 Nov 2003 10:36:43 +0100 |
User-agent: |
Mutt/1.5.4i |
On Tue, Nov 11, 2003 at 20:17:02 +1100, Robert Collins wrote:
> On Tue, 2003-11-11 at 19:42, Jan Hudec wrote:
>
> > That looks like a bug. Well, more probably a deficiency in the
> > implementation. file-find first determines tag for the file (by the name
> > given), and then goes to the pristine tree, gets it's inventory and
> > fetches the file. Since the file does not exist, the first step fails.
> >
> > Extending that command should be considered. But I am not really sure
> > what would be the RightWay to do it. (It should be kept that file-find
> > and file-diffs are implemented by the same function).
>
> The RightWay? Well, IMO if the file doesn't exist, look up the file in
> the pristine tree by name, and if it exists check for a tag conflict in
> inventory before considering it 'found'.
Hm, yes. I thought about the same.
IIRC, library-find does this... It would help quite a lot if someone
found a time and agressively merged all pieces of code in arch, that
look similar. (I will try, but I won't have much time).
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec
<address@hidden>