mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
tag: only check the status of .hgtags
This commit is contained in:
parent
fcac1ecffa
commit
9ed645dcaa
@ -574,10 +574,10 @@ class localrepository(object):
|
||||
date: date tuple to use if committing'''
|
||||
|
||||
if not local:
|
||||
for x in self.status(unknown=True, ignored=True):
|
||||
if '.hgtags' in x:
|
||||
raise util.Abort(_('working copy of .hgtags is changed '
|
||||
'(please commit .hgtags manually)'))
|
||||
m = matchmod.exact(self.root, '', ['.hgtags'])
|
||||
if util.any(self.status(match=m, unknown=True, ignored=True)):
|
||||
raise util.Abort(_('working copy of .hgtags is changed '
|
||||
'(please commit .hgtags manually)'))
|
||||
|
||||
self.tags() # instantiate the cache
|
||||
self._tag(names, node, message, local, user, date, editor=editor)
|
||||
|
Loading…
Reference in New Issue
Block a user