monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] 'db kill_unreferenced_file_locally'


From: Daniel THOMPSON
Subject: [Monotone-devel] 'db kill_unreferenced_file_locally'
Date: Mon, 26 Mar 2007 12:09:12 +0100
User-agent: Thunderbird 1.5.0.10 (X11/20070301)

Hi Folks

Sorry to trouble you again so soon. Basically I wonder if there is any
scope for adding the command 'kill_unreferenced_file_locally'.

Basically I have a whole bunch of files left after the rosterification
(I think they are the old .mt-attrs files) which make more noise than
I'd like.

e.g.
mtn: file 097b371d236dfc3ca9603621bf5db1b878fa9422 unreferenced

I couldn't find the appropriate command to remove them so I tried the
following rather brutal approach.

for i in $REVS
do
 mtn --db=indigo.db db execute "DELETE FROM files WHERE id='$i'"
 mtn --db=indigo.db db execute "DELETE FROM file_deltas WHERE id='$i'"
 mtn --db=indigo.db db execute "DELETE FROM file_deltas WHERE base='$i'"
done

Which 'works' in the sense that 'mtn db check' reports no errors but
still somehow leaves me with a sense of unease.

I therefore wondered if implementing a command 'db
kill_unreferenced_file_locally' would be possible (or useful)?

-- 
Daniel Thompson (STMicroelectronics) <address@hidden>
1000 Aztec West, Almondsbury, Bristol, BS32 4SQ. 01454 462659

If a car is a horseless carriage then is a motorcycle a horseless horse?




reply via email to

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