# Prepare and maintain partial trees by architecture
# Copyright (C) 2004 Daniel Silverstone <dsilvers@digital-scurf.org>
# Prepare and maintain partial trees by architecture
# Copyright (C) 2004 Daniel Silverstone <dsilvers@digital-scurf.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
## <kinnison> So Martin, do you have a quote for me yet?
## <tbm> Make something damned stupid up and attribute it to me, that's okay
## <kinnison> So Martin, do you have a quote for me yet?
## <tbm> Make something damned stupid up and attribute it to me, that's okay
# A BillieTarget is a representation of a target. It is a set of archs, a path
# and whether or not the target includes source.
##################
# A BillieTarget is a representation of a target. It is a set of archs, a path
# and whether or not the target includes source.
##################
# The applicable function is basically a predicate. Given a path and a
# target object its job is to decide if the path conforms for the
# target and thus is wanted.
# The applicable function is basically a predicate. Given a path and a
# target object its job is to decide if the path conforms for the
# target and thus is wanted.
-#################################################################################
-# A BillieDir is a representation of a tree. It distinguishes files dirs and links
+##############################################################################
+# A BillieDir is a representation of a tree.
+# It distinguishes files dirs and links
# Dirs are dicts of (name, BillieDir)
# Files are dicts of (name, inode)
# Links are dicts of (name, target)
# Dirs are dicts of (name, BillieDir)
# Files are dicts of (name, inode)
# Links are dicts of (name, target)
def do_unlink_dir(targ,path):
os.system( "rm -Rf '%s'" % _pth(targ.root, path) );
def do_unlink_dir(targ,path):
os.system( "rm -Rf '%s'" % _pth(targ.root, path) );
def reconcile_target_db( src, targ ):
_internal_reconcile( "", src.root, targ.db.root, targ );
def reconcile_target_db( src, targ ):
_internal_reconcile( "", src.root, targ.db.root, targ );