mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
handle nonexistent .hgtags in raw _tag
This commit is contained in:
parent
b476b55a4a
commit
cd14b55f6f
@ -129,7 +129,10 @@ class localrepository(repo.repository):
|
||||
if use_dirstate:
|
||||
self.wfile('.hgtags', 'ab').write(line)
|
||||
else:
|
||||
ntags = self.filectx('.hgtags', parent).data()
|
||||
try:
|
||||
ntags = self.filectx('.hgtags', parent).data()
|
||||
except revlog.LookupError:
|
||||
ntags = ''
|
||||
self.wfile('.hgtags', 'ab').write(ntags + line)
|
||||
if use_dirstate and self.dirstate.state('.hgtags') == '?':
|
||||
self.add(['.hgtags'])
|
||||
|
Loading…
Reference in New Issue
Block a user