equal
deleted
inserted
replaced
67 import mimetypes |
67 import mimetypes |
68 import operator |
68 import operator |
69 import re |
69 import re |
70 import time |
70 import time |
71 |
71 |
72 from mercurial.node import bin, nullid, short |
72 from mercurial.node import bin, short |
73 from mercurial.i18n import _ |
73 from mercurial.i18n import _ |
74 from mercurial.pycompat import getattr |
74 from mercurial.pycompat import getattr |
75 from mercurial.thirdparty import attr |
75 from mercurial.thirdparty import attr |
76 from mercurial import ( |
76 from mercurial import ( |
77 cmdutil, |
77 cmdutil, |
584 if not force and not phprecset: |
584 if not force and not phprecset: |
585 tagname = b'D%d' % drev |
585 tagname = b'D%d' % drev |
586 tags.tag( |
586 tags.tag( |
587 repo, |
587 repo, |
588 tagname, |
588 tagname, |
589 nullid, |
589 repo.nullid, |
590 message=None, |
590 message=None, |
591 user=None, |
591 user=None, |
592 date=None, |
592 date=None, |
593 local=True, |
593 local=True, |
594 ) |
594 ) |
1604 tagname = b'D%d' % drevid |
1604 tagname = b'D%d' % drevid |
1605 if tagname in repo.tags(): |
1605 if tagname in repo.tags(): |
1606 tags.tag( |
1606 tags.tag( |
1607 repo, |
1607 repo, |
1608 tagname, |
1608 tagname, |
1609 nullid, |
1609 repo.nullid, |
1610 message=None, |
1610 message=None, |
1611 user=None, |
1611 user=None, |
1612 date=None, |
1612 date=None, |
1613 local=True, |
1613 local=True, |
1614 ) |
1614 ) |