diff options
author | Peter Bex <peter@more-magic.net> | 2011-05-28 23:14:21 +0200 |
---|---|---|
committer | Peter Bex <peter@more-magic.net> | 2011-05-28 23:14:21 +0200 |
commit | 958e076092e41d4fec848b42402272dc494df4f9 (patch) | |
tree | 320ffc19b2cc092a8485c8fe94075c00d43fa2f4 /egg-author.py | |
parent | d811f069ab5b251fa8610a06d99199499c41bed0 (diff) | |
download | hg-egg-author-958e076092e41d4fec848b42402272dc494df4f9.tar.gz |
Fix error situation when there are no hgtags. Python is dumb...
Diffstat (limited to 'egg-author.py')
-rw-r--r-- | egg-author.py | 3 |
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)) |