Show More
@@ -204,7 +204,9 b' class gitbmstore:' | |||||
204 |
|
204 | |||
205 | @active.setter |
|
205 | @active.setter | |
206 | def active(self, mark): |
|
206 | def active(self, mark): | |
207 | githead = mark is not None and (_BMS_PREFIX + mark) or None |
|
207 | githead = None | |
|
208 | if mark is not None: | |||
|
209 | githead = _BMS_PREFIX + pycompat.fsdecode(mark) | |||
208 | if githead is not None and githead not in self.gitrepo.references: |
|
210 | if githead is not None and githead not in self.gitrepo.references: | |
209 | raise AssertionError(b'bookmark %s does not exist!' % mark) |
|
211 | raise AssertionError(b'bookmark %s does not exist!' % mark) | |
210 |
|
212 | |||
@@ -254,7 +256,7 b' class gitbmstore:' | |||||
254 | ) |
|
256 | ) | |
255 |
|
257 | |||
256 | def checkconflict(self, mark, force=False, target=None): |
|
258 | def checkconflict(self, mark, force=False, target=None): | |
257 | githead = _BMS_PREFIX + mark |
|
259 | githead = _BMS_PREFIX + pycompat.fsdecode(mark) | |
258 | cur = self.gitrepo.references['HEAD'] |
|
260 | cur = self.gitrepo.references['HEAD'] | |
259 | if githead in self.gitrepo.references and not force: |
|
261 | if githead in self.gitrepo.references and not force: | |
260 | if target: |
|
262 | if target: |
@@ -119,6 +119,10 b' Log works too:' | |||||
119 | and bookmarks: |
|
119 | and bookmarks: | |
120 | $ hg bookmarks |
|
120 | $ hg bookmarks | |
121 | * master 1:3d9be8deba43 |
|
121 | * master 1:3d9be8deba43 | |
|
122 | $ hg up master | |||
|
123 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
124 | $ hg bookmarks | |||
|
125 | * master 1:3d9be8deba43 | |||
122 |
|
126 | |||
123 | diff even works transparently in both systems: |
|
127 | diff even works transparently in both systems: | |
124 | $ echo blah >> alpha |
|
128 | $ echo blah >> alpha |
General Comments 0
You need to be logged in to leave comments.
Login now