Show More
@@ -129,7 +129,10 b' class localrepository(repo.repository):' | |||||
129 | if use_dirstate: |
|
129 | if use_dirstate: | |
130 | self.wfile('.hgtags', 'ab').write(line) |
|
130 | self.wfile('.hgtags', 'ab').write(line) | |
131 | else: |
|
131 | else: | |
132 | ntags = self.filectx('.hgtags', parent).data() |
|
132 | try: | |
|
133 | ntags = self.filectx('.hgtags', parent).data() | |||
|
134 | except revlog.LookupError: | |||
|
135 | ntags = '' | |||
133 | self.wfile('.hgtags', 'ab').write(ntags + line) |
|
136 | self.wfile('.hgtags', 'ab').write(ntags + line) | |
134 | if use_dirstate and self.dirstate.state('.hgtags') == '?': |
|
137 | if use_dirstate and self.dirstate.state('.hgtags') == '?': | |
135 | self.add(['.hgtags']) |
|
138 | self.add(['.hgtags']) |
General Comments 0
You need to be logged in to leave comments.
Login now