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