From 958e076092e41d4fec848b42402272dc494df4f9 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sat, 28 May 2011 23:14:21 +0200 Subject: Fix error situation when there are no hgtags. Python is dumb... --- egg-author.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- cgit v1.2.3