Show More
@@ -5805,6 +5805,7 b' def pull(ui, repo, source="default", **o' | |||||
5805 | remotebookmarks = other.listkeys('bookmarks') |
|
5805 | remotebookmarks = other.listkeys('bookmarks') | |
5806 | pullopargs['remotebookmarks'] = remotebookmarks |
|
5806 | pullopargs['remotebookmarks'] = remotebookmarks | |
5807 | for b in opts['bookmark']: |
|
5807 | for b in opts['bookmark']: | |
|
5808 | b = repo._bookmarks.expandname(b) | |||
5808 | if b not in remotebookmarks: |
|
5809 | if b not in remotebookmarks: | |
5809 | raise error.Abort(_('remote bookmark %s not found!') % b) |
|
5810 | raise error.Abort(_('remote bookmark %s not found!') % b) | |
5810 | revs.append(remotebookmarks[b]) |
|
5811 | revs.append(remotebookmarks[b]) |
@@ -1056,7 +1056,8 b' class pulloperation(object):' | |||||
1056 | # revision we try to pull (None is "all") |
|
1056 | # revision we try to pull (None is "all") | |
1057 | self.heads = heads |
|
1057 | self.heads = heads | |
1058 | # bookmark pulled explicitly |
|
1058 | # bookmark pulled explicitly | |
1059 | self.explicitbookmarks = bookmarks |
|
1059 | self.explicitbookmarks = [repo._bookmarks.expandname(bookmark) | |
|
1060 | for bookmark in bookmarks] | |||
1060 | # do we force pull? |
|
1061 | # do we force pull? | |
1061 | self.force = force |
|
1062 | self.force = force | |
1062 | # whether a streaming clone was requested |
|
1063 | # whether a streaming clone was requested |
@@ -252,7 +252,10 b' divergent bookmarks' | |||||
252 |
|
252 | |||
253 | explicit pull should overwrite the local version (issue4439) |
|
253 | explicit pull should overwrite the local version (issue4439) | |
254 |
|
254 | |||
255 | $ hg pull --config paths.foo=../a foo -B X |
|
255 | $ hg update -r X | |
|
256 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
257 | (activating bookmark X) | |||
|
258 | $ hg pull --config paths.foo=../a foo -B . | |||
256 |
|
|
259 | pulling from $TESTTMP/a (glob) | |
257 | no changes found |
|
260 | no changes found | |
258 | divergent bookmark @ stored as @foo |
|
261 | divergent bookmark @ stored as @foo | |
@@ -366,7 +369,10 b' Update a bookmark right after the initia' | |||||
366 | X 1:0d2164f0ce0d |
|
369 | X 1:0d2164f0ce0d | |
367 | * Y 5:35d1ef0a8d1b |
|
370 | * Y 5:35d1ef0a8d1b | |
368 | Z 1:0d2164f0ce0d |
|
371 | Z 1:0d2164f0ce0d | |
369 |
$ hg |
|
372 | $ hg update -r Y | |
|
373 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |||
|
374 | (activating bookmark Y) | |||
|
375 | $ hg pull -B . | |||
370 |
|
|
376 | pulling from http://localhost:$HGPORT/ | |
371 | searching for changes |
|
377 | searching for changes | |
372 | adding changesets |
|
378 | adding changesets | |
@@ -376,9 +382,9 b' Update a bookmark right after the initia' | |||||
376 | updating bookmark Y |
|
382 | updating bookmark Y | |
377 | (run 'hg update' to get a working copy) |
|
383 | (run 'hg update' to get a working copy) | |
378 | $ hg book |
|
384 | $ hg book | |
379 |
|
|
385 | @ 1:0d2164f0ce0d | |
380 | X 1:0d2164f0ce0d |
|
386 | X 1:0d2164f0ce0d | |
381 |
|
|
387 | * Y 5:35d1ef0a8d1b | |
382 | Z 1:0d2164f0ce0d |
|
388 | Z 1:0d2164f0ce0d | |
383 |
|
389 | |||
384 | (done with this section of the test) |
|
390 | (done with this section of the test) |
General Comments 0
You need to be logged in to leave comments.
Login now