jimmyppi / boar

Automatically exported from code.google.com/p/boar
0 stars 0 forks source link

cleanup empty directories #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. rm a dir [with subdirs] in WorkingCopyA
2. boar co
3. cd corkingCopyB; boar update

What is the expected output? 
In WorkingCopyB: same structure as WorkingCopyA

What do you see instead?
In WorkingCopyB: old empty dirs

What platform are you using? (Windows XP, Windows 7, Linux, ...)
Ubuntu natty

What version of Python are you using?
2.7
What version of boar are you using? (Mercurial change id or daily build
date)
BOAR_VERSION = "boar-daily.11-Jul-2011"

It's nasty do to do it myself, because I always have to check if evereythin 
really is empty before deleting. I'd like to see that boar worked correctly.

great tool!

Original issue reported on code.google.com by thre...@googlemail.com on 7 Oct 2011 at 3:49

GoogleCodeExporter commented 9 years ago
True, this is a problem. Boar stores information about files, but directories 
are secondary citizens and only exists if they contain a versioned file. It is 
not possible to check in empty directories in boar, and any superfluous 
directories in a workdir will simply be ignored. This is not an ideal behavior, 
but it makes things considerably easier code-wise. This behavior is common 
among version control systems. Git and subversion works in similar ways, just 
to mention two. But of course that's not a reason why boar can't do better. 

Original comment by ekb...@gmail.com on 7 Oct 2011 at 8:12

GoogleCodeExporter commented 9 years ago
Issue 103 has been merged into this issue.

Original comment by ekb...@gmail.com on 18 Sep 2013 at 11:07