From 48037501284904e26171a9e5df8d45a06663a744 Mon Sep 17 00:00:00 2001 From: Guido Guenther Date: Mon, 14 Apr 2008 15:45:04 +0200 Subject: fix indentation --- gbp/git_utils.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/gbp/git_utils.py b/gbp/git_utils.py index c95dd316..bbbc96f5 100644 --- a/gbp/git_utils.py +++ b/gbp/git_utils.py @@ -124,18 +124,18 @@ def sanitize_version(version): def replace_source_tree(repo, src_dir, filters, verbose=False): - """ - make the current wc match what's in src_dir - @return: True if wc was modified - @rtype: boolean - """ - old = set(repo.index_files()) - new = set(copy_from(src_dir, filters)) - GitAdd()(['.']) - files = [ obj for obj in old - new if not os.path.isdir(obj)] - if files: - GitRm(verbose=verbose)(files) - return not repo.is_clean()[0] + """ + make the current wc match what's in src_dir + @return: True if wc was modified + @rtype: boolean + """ + old = set(repo.index_files()) + new = set(copy_from(src_dir, filters)) + GitAdd()(['.']) + files = [ obj for obj in old - new if not os.path.isdir(obj)] + if files: + GitRm(verbose=verbose)(files) + return not repo.is_clean()[0] def rfc822_date_to_git(rfc822_date): -- cgit v1.2.3