##// END OF EJS Templates
merge with stable
Martin Geisler -
r12963:e80128e4 merge default
parent child Browse files
Show More
@@ -249,11 +249,13 b' class bundlerepository(localrepo.localre'
249 def close(self):
249 def close(self):
250 """Close assigned bundle file immediately."""
250 """Close assigned bundle file immediately."""
251 self.bundle.close()
251 self.bundle.close()
252 if self.tempfile is not None:
253 os.unlink(self.tempfile)
252
254
253 def __del__(self):
255 def __del__(self):
254 del self.bundle
256 del self.bundle
255 if tempfile is not None:
257 if self.tempfile is not None:
256 os.unlink(tempfile)
258 os.unlink(self.tempfile)
257 if self._tempparent:
259 if self._tempparent:
258 shutil.rmtree(self._tempparent, True)
260 shutil.rmtree(self._tempparent, True)
259
261
@@ -8,7 +8,7 b' Valid URLs are of the form::'
8
8
9 Paths in the local filesystem can either point to Mercurial
9 Paths in the local filesystem can either point to Mercurial
10 repositories or to bundle files (as created by :hg:`bundle` or :hg:`
10 repositories or to bundle files (as created by :hg:`bundle` or :hg:`
11 incoming --bundle`).
11 incoming --bundle`). See also :hg:`help paths`.
12
12
13 An optional identifier after # indicates a particular branch, tag, or
13 An optional identifier after # indicates a particular branch, tag, or
14 changeset to use from the remote repository. See also :hg:`help
14 changeset to use from the remote repository. See also :hg:`help
@@ -33,6 +33,7 b' Incoming to fresh repo:'
33 comparing with main.hg
33 comparing with main.hg
34 0: main: one added
34 0: main: one added
35 1: main: one updated
35 1: main: one updated
36 $ test -f ./fresh/.hg/hg-bundle* && echo 'temp. bundle file remained' || true
36
37
37 $ hg -R fresh tincoming bundle:fresh+main.hg
38 $ hg -R fresh tincoming bundle:fresh+main.hg
38 comparing with bundle:fresh+main.hg
39 comparing with bundle:fresh+main.hg
@@ -58,6 +59,7 b' Bundle queue:'
58
59
59 $ hg -R .hg/patches bundle --base=null ../queue.hgq
60 $ hg -R .hg/patches bundle --base=null ../queue.hgq
60 1 changesets found
61 1 changesets found
62 $ test -f ./fresh/.hg/hg-bundle* && echo 'temp. bundle file remained' || true
61
63
62 $ cd ..
64 $ cd ..
63
65
@@ -75,6 +77,7 b' Incoming queue bundle:'
75 $ hg -R .hg/patches tincoming ../queue.hgq
77 $ hg -R .hg/patches tincoming ../queue.hgq
76 comparing with ../queue.hgq
78 comparing with ../queue.hgq
77 0: queue: two.patch added
79 0: queue: two.patch added
80 $ test -f .hg/hg-bundle* && echo 'temp. bundle file remained' || true
78
81
79 Pull queue bundle:
82 Pull queue bundle:
80
83
@@ -87,6 +90,7 b' Pull queue bundle:'
87 added 1 changesets with 3 changes to 3 files
90 added 1 changesets with 3 changes to 3 files
88 merging series
91 merging series
89 2 files updated, 1 files merged, 0 files removed, 0 files unresolved
92 2 files updated, 1 files merged, 0 files removed, 0 files unresolved
93 $ test -f .hg/patches/hg-bundle* && echo 'temp. bundle file remained' || true
90
94
91 $ hg -R .hg/patches theads
95 $ hg -R .hg/patches theads
92 0: queue: two.patch added
96 0: queue: two.patch added
@@ -107,7 +107,7 b' plain headers'
107 abort: "foo#bar" cannot be used as the name of a patch
107 abort: "foo#bar" cannot be used as the name of a patch
108 abort: "foo:bar" cannot be used as the name of a patch
108 abort: "foo:bar" cannot be used as the name of a patch
109 % qnew with name containing slash
109 % qnew with name containing slash
110 abort: cannot write patch "foo/": Is a directory
110 abort: cannot write patch "foo/": (Is a|No such file or) directory (re)
111 abort: "foo" already exists as a directory
111 abort: "foo" already exists as a directory
112 foo/bar.patch
112 foo/bar.patch
113 popping foo/bar.patch
113 popping foo/bar.patch
@@ -172,7 +172,7 b' hg headers'
172 abort: "foo#bar" cannot be used as the name of a patch
172 abort: "foo#bar" cannot be used as the name of a patch
173 abort: "foo:bar" cannot be used as the name of a patch
173 abort: "foo:bar" cannot be used as the name of a patch
174 % qnew with name containing slash
174 % qnew with name containing slash
175 abort: cannot write patch "foo/": Is a directory
175 abort: cannot write patch "foo/": (Is a|No such file or) directory (re)
176 abort: "foo" already exists as a directory
176 abort: "foo" already exists as a directory
177 foo/bar.patch
177 foo/bar.patch
178 popping foo/bar.patch
178 popping foo/bar.patch
General Comments 0
You need to be logged in to leave comments. Login now