equal
deleted
inserted
replaced
216 @util.propertycache |
216 @util.propertycache |
217 def _bookmarks(self): |
217 def _bookmarks(self): |
218 '''Parse .hg/bookmarks file and return a dictionary |
218 '''Parse .hg/bookmarks file and return a dictionary |
219 |
219 |
220 Bookmarks are stored as {HASH}\\s{NAME}\\n (localtags format) values |
220 Bookmarks are stored as {HASH}\\s{NAME}\\n (localtags format) values |
221 in the .hg/bookmarks file. They are read returned as a dictionary |
221 in the .hg/bookmarks file. |
222 with name => hash values. |
222 Read the file and return a (name=>nodeid) dictionary |
223 ''' |
223 ''' |
224 try: |
224 try: |
225 bookmarks = {} |
225 bookmarks = {} |
226 for line in self.opener('bookmarks'): |
226 for line in self.opener('bookmarks'): |
227 sha, refspec = line.strip().split(' ', 1) |
227 sha, refspec = line.strip().split(' ', 1) |