Matt Mackall avatar Matt Mackall committed 4421abf

tag: force load of tag cache

Comments (0)

Files changed (3)

mercurial/localrepo.py

                 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)
 
     def tags(self):

tests/test-tag.out

 868cc8fbb43b754ad09fa109885d243fc49adae7 gack
 868cc8fbb43b754ad09fa109885d243fc49adae7 gawk
 868cc8fbb43b754ad09fa109885d243fc49adae7 gorp
+868cc8fbb43b754ad09fa109885d243fc49adae7 gack
 3807bcf62c5614cb6c16436b514d7764ca5f1631 gack
 3807bcf62c5614cb6c16436b514d7764ca5f1631 gack
 0000000000000000000000000000000000000000 gack

tests/test-tags.out

 date:        Mon Jan 12 13:46:40 1970 +0000
 summary:     Removed tag bar
 
-tip                                5:d8bb4d1eff25
+tip                                5:e86d7ed95fd3
 bar                                0:b409d9da318e
 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 created new head
-tip                                6:b5ff9d142648
+tip                                6:b744fbe1f6dd
 bar                                0:b409d9da318e
 abort: tag 'bar' already exists (use -f to force)
-tip                                6:b5ff9d142648
+tip                                6:b744fbe1f6dd
 bar                                0:b409d9da318e
 adding foo
-tip                                3:ca8479b4351c
-bar                                2:72b852876a42
+tip                                3:197c21bbbf2c
+bar                                2:6fa450212aeb
 % bar should still point to rev 2
-tip                                4:40af5d225513
-bar                                2:72b852876a42
+tip                                4:3b4b14ed0202
+bar                                2:6fa450212aeb
 adding foo
 abort: tag 'localtag' is not a global tag
 abort: tag 'globaltag' is not a local tag
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.