monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] empty directories


From: Nathaniel Smith
Subject: Re: [Monotone-devel] empty directories
Date: Sat, 18 Nov 2006 16:40:25 -0800
User-agent: Mutt/1.5.13 (2006-08-11)

On Sun, Nov 19, 2006 at 11:04:16AM +1100, Brian May wrote:
> >>>>> "Ulf" == Ulf Ochsenfahrt <address@hidden> writes:
> 
>     Ulf> Brian May wrote:
>     >> Hello,
>     >> 
>     >> If I delete a directory that contains no files but don't tell
>     >> monotone, monotone "forgets" about it: ...
>     >> 
>     >> Is this expected behaviour?
> 
>     Ulf> It's been doing this for quite some time.  mtn ls missing is
>     Ulf> your friend.
> 
> Is there any justification for this behaviour? I consider it broken...

No, it's a bug.  It just never occurred to anyone that when scanning
the workspace to find file changes (and in the process bump into
missing files) that we should also be stat'ing directories (just to
make sure that they hadn't gone missing).

> I assume monotone will automatically create the directory if an update
> operation needs to create files in that directory?

Umm, maybe... whatever it does in this case is probably by accident.
Our operations all have well-defined semantics when the workspace
matches our idea of what it should be, but no-one has sat down and
worked out exactly what should happen in all the cases when it
doesn't.

-- Nathaniel

-- 
- Don't let your informants burn anything.
- Don't grow old.
- Be good grad students.
  -- advice of Murray B. Emeneau on the occasion of his 100th birthday




reply via email to

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