bookmarks: introduce a bmstore to manage bookmark persistence
Bookmarks persistence still showed a fair amount of its legacy as a monkeypatching extension. This encapsulates all bookmarks serialization and parsing in a single class, and offers a single location where other bookmarks storage engines can be substituted in. As a result, many files no longer import the bookmarks module, which strikes me as an encapsulation win. This doesn't do anything to the current bookmark state yet, but I'm hoping put that in the bmstore class as well.
Showing
- hgext/convert/hg.py 3 additions, 2 deletionshgext/convert/hg.py
- hgext/histedit.py 4 additions, 4 deletionshgext/histedit.py
- hgext/mq.py 6 additions, 5 deletionshgext/mq.py
- hgext/rebase.py 3 additions, 2 deletionshgext/rebase.py
- mercurial/bookmarks.py 73 additions, 63 deletionsmercurial/bookmarks.py
- mercurial/cmdutil.py 4 additions, 3 deletionsmercurial/cmdutil.py
- mercurial/commands.py 9 additions, 7 deletionsmercurial/commands.py
- mercurial/hg.py 3 additions, 2 deletionsmercurial/hg.py
- mercurial/localrepo.py 1 addition, 4 deletionsmercurial/localrepo.py
- mercurial/repair.py 2 additions, 2 deletionsmercurial/repair.py
Loading
Please register or sign in to comment