aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/git_utils.py
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2008-04-14 15:45:04 +0200
committerGuido Guenther <agx@sigxcpu.org>2008-04-14 15:45:04 +0200
commit48037501284904e26171a9e5df8d45a06663a744 (patch)
tree38eaf781115b06469bc2e6cc6f4464e975b0ed2a /gbp/git_utils.py
parent413f3559fdf872d0ff97382266b7257492a2c32d (diff)
fix indentation
Diffstat (limited to 'gbp/git_utils.py')
-rw-r--r--gbp/git_utils.py24
1 files 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):