Show More
@@ -83,7 +83,7 b' def buildmetadata(ctx):' | |||||
83 | hex = ctx.hex() |
|
83 | hex = ctx.hex() | |
84 | if ctx.rev() is None: |
|
84 | if ctx.rev() is None: | |
85 | hex = ctx.p1().hex() |
|
85 | hex = ctx.p1().hex() | |
86 | if ctx.dirty(): |
|
86 | if ctx.dirty(missing=True): | |
87 | hex += '+' |
|
87 | hex += '+' | |
88 |
|
88 | |||
89 | base = 'repo: %s\nnode: %s\nbranch: %s\n' % ( |
|
89 | base = 'repo: %s\nnode: %s\nbranch: %s\n' % ( |
@@ -238,6 +238,31 b' Check that deep archiving works' | |||||
238 | committing subrepository sub1 |
|
238 | committing subrepository sub1 | |
239 | committing subrepository sub1/sub2 (glob) |
|
239 | committing subrepository sub1/sub2 (glob) | |
240 |
|
240 | |||
|
241 | $ rm -r main | |||
|
242 | $ hg archive -S -qr 'wdir()' ../wdir | |||
|
243 | $ cat ../wdir/.hg_archival.txt | |||
|
244 | repo: 7f491f53a367861f47ee64a80eb997d1f341b77a | |||
|
245 | node: 9bb10eebee29dc0f1201dcf5977b811a540255fd+ | |||
|
246 | branch: default | |||
|
247 | latesttag: null | |||
|
248 | latesttagdistance: 4 | |||
|
249 | changessincelatesttag: 4 | |||
|
250 | $ hg update -Cq . | |||
|
251 | ||||
|
252 | TODO: add the dirty flag for missing subrepo files | |||
|
253 | ||||
|
254 | $ rm -r ../wdir sub1/sub2/folder/test.txt | |||
|
255 | $ hg archive -S -qr 'wdir()' ../wdir | |||
|
256 | $ cat ../wdir/.hg_archival.txt | |||
|
257 | repo: 7f491f53a367861f47ee64a80eb997d1f341b77a | |||
|
258 | node: 9bb10eebee29dc0f1201dcf5977b811a540255fd | |||
|
259 | branch: default | |||
|
260 | latesttag: null | |||
|
261 | latesttagdistance: 4 | |||
|
262 | changessincelatesttag: 4 | |||
|
263 | $ hg update -Cq . | |||
|
264 | $ rm -r ../wdir | |||
|
265 | ||||
241 | .. but first take a detour through some deep removal testing |
|
266 | .. but first take a detour through some deep removal testing | |
242 |
|
267 | |||
243 | $ hg remove -S -I 're:.*.txt' . |
|
268 | $ hg remove -S -I 're:.*.txt' . |
General Comments 0
You need to be logged in to leave comments.
Login now