comparison hgext/bookmarks.py @ 7789:e8d62d6133c2

bookmarks: escape literal backslashes in docstring
author Martin Geisler <mg@daimi.au.dk>
date Tue, 17 Feb 2009 23:58:56 +0100
parents 2ad81e9b075b
children 5043def56a80
comparison
equal deleted inserted replaced
7788:0896c008cb52 7789:e8d62d6133c2
31 import os 31 import os
32 32
33 def parse(repo): 33 def parse(repo):
34 '''Parse .hg/bookmarks file and return a dictionary 34 '''Parse .hg/bookmarks file and return a dictionary
35 35
36 Bookmarks are stored as {HASH}\s{NAME}\n (localtags format) values 36 Bookmarks are stored as {HASH}\\s{NAME}\\n (localtags format) values
37 in the .hg/bookmarks file. They are read by the parse() method and 37 in the .hg/bookmarks file. They are read by the parse() method and
38 returned as a dictionary with name => hash values. 38 returned as a dictionary with name => hash values.
39 39
40 The parsed dictionary is cached until a write() operation is done. 40 The parsed dictionary is cached until a write() operation is done.
41 ''' 41 '''