Show More
@@ -1056,7 +1056,7 b" def export(repo, revs, template='hg-%h.p" | |||||
1056 | modemap=filemode) |
|
1056 | modemap=filemode) | |
1057 | if fp != template: |
|
1057 | if fp != template: | |
1058 | shouldclose = True |
|
1058 | shouldclose = True | |
1059 | if fp and fp != sys.stdout and util.safehasattr(fp, 'name'): |
|
1059 | if fp and not getattr(fp, 'name', '<unnamed>').startswith('<'): | |
1060 | repo.ui.note("%s\n" % fp.name) |
|
1060 | repo.ui.note("%s\n" % fp.name) | |
1061 |
|
1061 | |||
1062 | if not fp: |
|
1062 | if not fp: |
@@ -137,6 +137,25 b' Exporting revision -2 to a file:' | |||||
137 | foo-9 |
|
137 | foo-9 | |
138 | +foo-10 |
|
138 | +foo-10 | |
139 |
|
139 | |||
|
140 | No filename should be printed if stdout is specified explicitly: | |||
|
141 | ||||
|
142 | $ hg export -v 1 -o - | |||
|
143 | # HG changeset patch | |||
|
144 | # User test | |||
|
145 | # Date 0 0 | |||
|
146 | # Thu Jan 01 00:00:00 1970 +0000 | |||
|
147 | # Node ID d1c9656e973cfb5aebd5499bbd2cb350e3b12266 | |||
|
148 | # Parent 871558de6af2e8c244222f8eea69b782c94ce3df | |||
|
149 | foo-1 | |||
|
150 | ||||
|
151 | diff -r 871558de6af2 -r d1c9656e973c foo | |||
|
152 | --- a/foo Thu Jan 01 00:00:00 1970 +0000 | |||
|
153 | +++ b/foo Thu Jan 01 00:00:00 1970 +0000 | |||
|
154 | @@ -1,1 +1,2 @@ | |||
|
155 | foo-0 | |||
|
156 | +foo-1 | |||
|
157 | exporting patch: | |||
|
158 | ||||
140 | Checking if only alphanumeric characters are used in the file name (%m option): |
|
159 | Checking if only alphanumeric characters are used in the file name (%m option): | |
141 |
|
160 | |||
142 | $ echo "line" >> foo |
|
161 | $ echo "line" >> foo |
General Comments 0
You need to be logged in to leave comments.
Login now