##// END OF EJS Templates
bookmarks: rename readcurrent to readactive (API)...
Ryan McElroy -
r24946:c4453420 default
parent child Browse files
Show More
@@ -106,13 +106,12 b' class bmstore(dict):'
106 106 for name, node in self.iteritems():
107 107 fp.write("%s %s\n" % (hex(node), encoding.fromlocal(name)))
108 108
109 def readcurrent(repo):
110 '''Get the current bookmark
111
112 If we use gittish branches we have a current bookmark that
113 we are on. This function returns the name of the bookmark. It
114 is stored in .hg/bookmarks.current
115 '''
109 def readactive(repo):
110 """
111 Get the active bookmark. We can have an active bookmark that updates
112 itself as we commit. This function returns the name of that bookmark.
113 It is stored in .hg/bookmarks.current
114 """
116 115 mark = None
117 116 try:
118 117 file = repo.vfs('bookmarks.current')
@@ -416,7 +416,7 b' class localrepository(object):'
416 416
417 417 @repofilecache('bookmarks.current')
418 418 def _bookmarkcurrent(self):
419 return bookmarks.readcurrent(self)
419 return bookmarks.readactive(self)
420 420
421 421 def bookmarkheads(self, bookmark):
422 422 name = bookmark.split('@', 1)[0]
General Comments 0
You need to be logged in to leave comments. Login now