##// END OF EJS Templates
merge with stable
Matt Mackall -
r16197:0196c437 merge default
parent child Browse files
Show More
@@ -497,6 +497,7 b' class cookietransportrequest(object):'
497
497
498 def request(self, host, handler, request_body, verbose=0):
498 def request(self, host, handler, request_body, verbose=0):
499 self.verbose = verbose
499 self.verbose = verbose
500 self.accept_gzip_encoding = False
500
501
501 # issue XML-RPC request
502 # issue XML-RPC request
502 h = self.make_connection(host)
503 h = self.make_connection(host)
@@ -129,11 +129,12 b' def setcurrent(repo, mark):'
129 def unsetcurrent(repo):
129 def unsetcurrent(repo):
130 wlock = repo.wlock()
130 wlock = repo.wlock()
131 try:
131 try:
132 util.unlink(repo.join('bookmarks.current'))
132 try:
133 repo._bookmarkcurrent = None
133 util.unlink(repo.join('bookmarks.current'))
134 except OSError, inst:
134 repo._bookmarkcurrent = None
135 if inst.errno != errno.ENOENT:
135 except OSError, inst:
136 raise
136 if inst.errno != errno.ENOENT:
137 raise
137 finally:
138 finally:
138 wlock.release()
139 wlock.release()
139
140
@@ -168,6 +168,7 b' class bundlerepository(localrepo.localre'
168 self._tempparent = tempfile.mkdtemp()
168 self._tempparent = tempfile.mkdtemp()
169 localrepo.instance(ui, self._tempparent, 1)
169 localrepo.instance(ui, self._tempparent, 1)
170 localrepo.localrepository.__init__(self, ui, self._tempparent)
170 localrepo.localrepository.__init__(self, ui, self._tempparent)
171 self.ui.setconfig('phases', 'publish', False)
171
172
172 if path:
173 if path:
173 self._url = 'bundle:' + util.expandpath(path) + '+' + bundlename
174 self._url = 'bundle:' + util.expandpath(path) + '+' + bundlename
@@ -508,7 +508,7 b' class hgsubrepo(abstractsubrepo):'
508 anc = dst.ancestor(cur)
508 anc = dst.ancestor(cur)
509
509
510 def mergefunc():
510 def mergefunc():
511 if anc == cur:
511 if anc == cur and dst.branch() == cur.branch():
512 self._repo.ui.debug("updating subrepo %s\n" % subrelpath(self))
512 self._repo.ui.debug("updating subrepo %s\n" % subrelpath(self))
513 hg.update(self._repo, state[1])
513 hg.update(self._repo, state[1])
514 elif anc == dst:
514 elif anc == dst:
@@ -465,6 +465,38 b' initial setup'
465 o 0 public a-A - 054250a37db4
465 o 0 public a-A - 054250a37db4
466
466
467
467
468 Pulling from bundle does not alter phases of changeset not present in the bundle
469
470 $ hg bundle --base 1 -r 6 -r 3 ../partial-bundle.hg
471 5 changesets found
472 $ hg pull ../partial-bundle.hg
473 pulling from ../partial-bundle.hg
474 searching for changes
475 no changes found
476 $ hgph
477 @ 10 draft a-H - 967b449fbc94
478 |
479 | o 9 draft a-G - 3e27b6f1eee1
480 | |
481 | o 8 draft a-F - b740e3e5c05d
482 | |
483 | o 7 draft a-E - e9f537e46dea
484 | |
485 +---o 6 public n-B - 145e75495359
486 | |
487 o | 5 public n-A - d6bcb4f74035
488 | |
489 o | 4 public b-A - f54f1bb90ff3
490 | |
491 | o 3 public a-D - b555f63b6063
492 | |
493 | o 2 public a-C - 54acac6f23ab
494 |/
495 o 1 public a-B - 548a3d25dbf0
496 |
497 o 0 public a-A - 054250a37db4
498
499
468 Pushing to Publish=False (unknown changeset)
500 Pushing to Publish=False (unknown changeset)
469
501
470 $ hg push ../mu -r b740e3e5c05d # a-F
502 $ hg push ../mu -r b740e3e5c05d # a-F
General Comments 0
You need to be logged in to leave comments. Login now