[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] empty directories
From: |
Brian May |
Subject: |
[Monotone-devel] empty directories |
Date: |
Thu, 16 Nov 2006 14:34:52 +1100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux) |
Hello,
If I delete a directory that contains no files but don't tell
monotone, monotone "forgets" about it:
address@hidden:/tmp/test$ mtn status
Current branch: test
Changes against parent 6a6788408f98b94b092dbcdad086164fd1d99f41:
no changes
address@hidden:/tmp/test$ mtn status new
Current branch: test
Changes against parent 6a6788408f98b94b092dbcdad086164fd1d99f41:
no changes
address@hidden:/tmp/test$ mtn status
Current branch: test
Changes against parent 6a6788408f98b94b092dbcdad086164fd1d99f41:
no changes
address@hidden:/tmp/test$ mtn diff
#
# no changes
#
address@hidden:/tmp/test$ rm -rf new/
address@hidden:/tmp/test$ mtn status
Current branch: test
Changes against parent 6a6788408f98b94b092dbcdad086164fd1d99f41:
no changes
address@hidden:/tmp/test$ mtn diff
#
# no changes
#
address@hidden:/tmp/test$ mtn revert new
mtn: recreating new/
Is this expected behaviour?
I was expecting to get an error that there were missing files.
As such I got rather puzzled when monotone wouldn't let me delete a
parent directory - it looked empty, but really contained empty
subdirectories - I needed to revert the directory to see them though.
monotone 0.30 (base revision: 843924a5e7fd46b3fa2c531eb28ae597b6172aed)
Running on : Linux 2.6.17-2-xen-686 #1 SMP Wed Sep 13 20:58:20 UTC
2006 i686
C++ compiler : GNU C++ version 4.0.4 20060507 (prerelease) (Debian
4.0.3-3)
C++ standard library: GNU libstdc++ version 20060507
Boost version : 1_33_1
Changes since base revision:
unknown
Also, somehow one of the commands (update?) I typed recursively
deleted a set of empty directories (but not in the inventory) however
I haven't been able to reproduce this again (I don't recall typing in
rm -rf dir either although). This also confused me - I had two working
up-to-date directories from the same branch but both of them were
different.
Thanks.
--
Brian May <address@hidden>
- [Monotone-devel] empty directories,
Brian May <=