##// END OF EJS Templates
bookmark: read pending data when appropriate...
Pierre-Yves David -
r23360:e06daad6 default
parent child Browse files
Show More
@@ -5,6 +5,7 b''
5 5 # This software may be used and distributed according to the terms of the
6 6 # GNU General Public License version 2 or any later version.
7 7
8 import os
8 9 from mercurial.i18n import _
9 10 from mercurial.node import hex, bin
10 11 from mercurial import encoding, error, util, obsolete, lock as lockmod
@@ -29,7 +30,16 b' class bmstore(dict):'
29 30 dict.__init__(self)
30 31 self._repo = repo
31 32 try:
32 for line in repo.vfs('bookmarks'):
33 bkfile = None
34 if 'HG_PENDING' in os.environ:
35 try:
36 bkfile = repo.vfs('bookmarks.pending')
37 except IOError, inst:
38 if inst.errno != errno.ENOENT:
39 raise
40 if bkfile is None:
41 bkfile = repo.vfs('bookmarks')
42 for line in bkfile:
33 43 line = line.strip()
34 44 if not line:
35 45 continue
@@ -166,7 +166,7 b' push'
166 166 $ hg -R main push other --rev eea13746799a --bookmark book_eea1
167 167 pushing to other
168 168 searching for changes
169 pre-close-tip:eea13746799a draft
169 pre-close-tip:eea13746799a draft book_eea1
170 170 postclose-tip:eea13746799a public book_eea1
171 171 b2x-transactionclose hook: HG_BOOKMARK_MOVED=1 HG_BUNDLE2-EXP=1 HG_NEW_OBSMARKERS=1 HG_NODE=eea13746799a9e0bfd88f29d3c2e9dc9389f524f HG_PHASES_MOVED=1 HG_SOURCE=push HG_URL=push
172 172 changegroup hook: HG_BUNDLE2-EXP=1 HG_NODE=eea13746799a9e0bfd88f29d3c2e9dc9389f524f HG_SOURCE=push HG_URL=push
@@ -201,7 +201,7 b' pull over ssh'
201 201 added 1 changesets with 1 changes to 1 files (+1 heads)
202 202 1 new obsolescence markers
203 203 updating bookmark book_02de
204 pre-close-tip:02de42196ebe public
204 pre-close-tip:02de42196ebe public book_02de
205 205 postclose-tip:02de42196ebe draft book_02de
206 206 b2x-transactionclose hook: HG_BOOKMARK_MOVED=1 HG_NEW_OBSMARKERS=1 HG_NODE=02de42196ebee42ef284b6780a87cdc96e8eaab6 HG_PHASES_MOVED=1 HG_SOURCE=pull HG_URL=ssh://user@dummy/main
207 207 changegroup hook: HG_NODE=02de42196ebee42ef284b6780a87cdc96e8eaab6 HG_SOURCE=pull HG_URL=ssh://user@dummy/main
@@ -226,7 +226,7 b' pull over http'
226 226 added 1 changesets with 1 changes to 1 files (+1 heads)
227 227 1 new obsolescence markers
228 228 updating bookmark book_42cc
229 pre-close-tip:42ccdea3bb16 public
229 pre-close-tip:42ccdea3bb16 public book_42cc
230 230 postclose-tip:42ccdea3bb16 draft book_42cc
231 231 b2x-transactionclose hook: HG_BOOKMARK_MOVED=1 HG_NEW_OBSMARKERS=1 HG_NODE=42ccdea3bb16d28e1848c95fe2e44c000f3f21b1 HG_PHASES_MOVED=1 HG_SOURCE=pull HG_URL=http://localhost:$HGPORT/
232 232 changegroup hook: HG_NODE=42ccdea3bb16d28e1848c95fe2e44c000f3f21b1 HG_SOURCE=pull HG_URL=http://localhost:$HGPORT/
@@ -250,7 +250,7 b' push over ssh'
250 250 remote: added 1 changesets with 1 changes to 1 files
251 251 remote: 1 new obsolescence markers
252 252 updating bookmark book_5fdd
253 remote: pre-close-tip:5fddd98957c8 draft
253 remote: pre-close-tip:5fddd98957c8 draft book_5fdd
254 254 remote: postclose-tip:5fddd98957c8 draft book_5fdd
255 255 remote: b2x-transactionclose hook: HG_BOOKMARK_MOVED=1 HG_BUNDLE2-EXP=1 HG_NEW_OBSMARKERS=1 HG_NODE=5fddd98957c8a54a4d436dfe1da9d87f21a1b97b HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1
256 256 remote: changegroup hook: HG_BUNDLE2-EXP=1 HG_NODE=5fddd98957c8a54a4d436dfe1da9d87f21a1b97b HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1
General Comments 0
You need to be logged in to leave comments. Login now