aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bex <peter@more-magic.net>2011-05-28 23:14:21 +0200
committerPeter Bex <peter@more-magic.net>2011-05-28 23:14:21 +0200
commit958e076092e41d4fec848b42402272dc494df4f9 (patch)
tree320ffc19b2cc092a8485c8fe94075c00d43fa2f4
parentd811f069ab5b251fa8610a06d99199499c41bed0 (diff)
downloadhg-egg-author-958e076092e41d4fec848b42402272dc494df4f9.tar.gz
Fix error situation when there are no hgtags. Python is dumb...
-rw-r--r--egg-author.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/egg-author.py b/egg-author.py
index 297bc04..b9d495a 100644
--- a/egg-author.py
+++ b/egg-author.py
@@ -157,7 +157,8 @@ def update_meta(ui, repo):
meta_file = _find_egg_info_file(repo, 'meta')
files = repo.status(clean=True)[6:][0]
- files.remove('.hgtags')
+ if '.hgtags' in files:
+ files.remove('.hgtags')
# A list without the parens around it
files_list = ' '.join(map(_to_scheme_string, files))