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

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

[Gnu-arch-users] Re: How to 'update' an updated archive?


From: Stig Brautaset
Subject: [Gnu-arch-users] Re: How to 'update' an updated archive?
Date: Tue, 15 Jun 2004 17:55:00 +0100
User-agent: Mutt/1.3.28i

On Jun 15 2004, TC wrote:
> On May 01 2004, Amit wrote:
> >> I have an archive that has some files in it. I delete one file. I now want
> >> it back.
> 
> To which Stig replied:
> > $ touch $file
> > $ tla file-diffs $file | patch -Rp1
> >
> > or
> >
> > $ cp $(tla file-find $file) .
> 
> All of which require that the names of the missing files are known.
> 
> But suppose I have deleted one or more files and I don't know 
> which.  "cvs update" would simply get the for me.  What's arch's
> approach (other than saying, "be more careful with your 
> files idiot!" :-)

tla changes | awk '/^D/ {print $2}' | while read f ; do 
        touch $f 
        tla file-diffs $f | patch -Rp1
done

or summat ;)

Stig
-- 
brautaset.org




reply via email to

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