##// END OF EJS Templates
branching: merge with stable
Martin von Zweigbergk -
r50075:c577d394 merge default
parent child Browse files
Show More
@@ -0,0 +1,22 b''
1 $ cat >> $HGRCPATH <<EOF
2 > [censor]
3 > policy=ignore
4 > EOF
5
6 $ mkdir r
7 $ cd r
8 $ hg init
9 $ echo secret > target
10 $ hg commit -Am "secret"
11 adding target
12 $ touch bystander
13 $ hg commit -Am "innocent"
14 adding bystander
15 $ echo erased-secret > target
16 $ hg commit -m "erased secret"
17 $ hg censor target --config extensions.censor= -r ".^^"
18 $ hg update ".^"
19 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
20 $ cat target
21 $ hg update tip
22 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
@@ -226,3 +226,4 b' dcec16e799ddb6d33fcd11b04af530250a417a58'
226 226 c00d3ce4e94bb0ee8d809e25e1dcb2a5fab84e2c 0 iQHNBAABCgA3FiEEH2b4zfZU6QXBHaBhoR4BzQ4F2VYFAmIPn9oZHGFscGhhcmVAcmFwaGFlbGdvbWVzLmRldgAKCRChHgHNDgXZVpamDACfmZw0FscQ6oCs1ZyWZ2sf6xxYnk242h4ca8fyILrGfuhlgkochlMwF8id3EPVKnie3QHBi33Nf5Tz9eFTFR4z/eQ5W8R+bjYWo/F+4FDkaTIprvg4gfoH1MklmpVhPa7MFVmp7tmSx/0EVdpJuMkJSeAU1kQ6Mq8ekMWQT4vtLbkAOGZcnwKiU57j8cYnOjoIqA+22/S0DBWMKjEnuz3k8TjplsZXVgTEUelFAwT4SC3qNSIBvVYyDmdAoD0C4zL88tErY0MeQ/ehId6E1khLvw9I65z/f2hOxXiDdk0b6WV2MCh1rxCX5RUiH0aNUmG+hGphpH0VVqQihkQEIdzZhXiFVlEc/rAbdt3g7pVc2RuWSanBUEOcvly0r40A2wRCka1jjgfz7dtmjZ91SKCPpOUdxHfaqqWz/0Y/oIgpq/UM+1fufDxeLZG+OY8B5y+c+ZUuGacAVNRQku6IB+0dT4/DTEsYWT3VMIH0ZzGFi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gFLyUAWA2d3NXVis7hFjwLToyBkObpZfq6X/7a9XhBHMwTM+O8ViYODraupcYw0vrqT93cbuBSN106sC1UERaVN2YNb1gsoyqXTZ2F8ho5QZWJphQw9cwKJkOn81SXJ8ZWr+L8WVm78mrbDV8zT6lQ/7IsmIXTQNWMBgeGc74qyReowyswP7hSbl9iQDcdKMus/4Gm9cqTnYg3Bt8jZ3lupeYMv9ZSFmKDG8A69QFLKYKzd/FFx0=
229 0ddd5e1f5f67438af85d12e4ce6c39021dde9916 0 iQHNBAABCgA3FiEEH2b4zfZU6QXBHaBhoR4BzQ4F2VYFAmJyo/kZHGFscGhhcmVAcmFwaGFlbGdvbWVzLmRldgAKCRChHgHNDgXZVsTVDACmg+uABE36kJcVJewoVK2I2JAdrO2llq3QbvzNb0eRL7bGy5UKJvF7fy/1FfayZT9/YTc6kGcRIeG+jUUiGRxMr0fOP9RixG78OyV14MmN1vkNTfMbk6BBrkYRbJJioLyk9qsXU6HbfRUdaCkOqwOKXKHm/4lzG/JFvL4JL6v++idx8W/7sADKILNy2DtP22YaRMgz38iM3ejgZghw7ie607C6lYq4wMs39jTZdZ3s6XoN+VgsLJWsI1LFnIADU5Zry8EAFERsvphiM2zG8lkrbPjpvwtidBz999TYnnGLvTMZA5ubspQRERc/eNDRbKdA55cCWNg3DhTancOiu3bQXdYCjF1MCN9g5Q11zbEzdwrbrY0NF7AUq1VW4kGFgChIJ0IuTQ/YETbcbih2Xs4nkAGt64YPtHzmOffF1a2/SUzH3AwgMmhBQBqxa02YTqyKJDHHqgTyFrZIkH/jb+rdfIskaOZZo6JcGUoacFOUhFfhSxxB1kN2HEHvEAQPMkc=
@@ -239,3 +239,4 b' dcec16e799ddb6d33fcd11b04af530250a417a58'
239 239 c00d3ce4e94bb0ee8d809e25e1dcb2a5fab84e2c 6.1rc0
240 240 d4486810a1795fba9521449b8885ced034f3a6dd 6.1
241 241 5bd6bcd31dd1ebb63b8914b00064f96297267af7 6.1.1
242 0ddd5e1f5f67438af85d12e4ce6c39021dde9916 6.1.2
@@ -2914,9 +2914,9 b' def amend(ui, repo, old, extra, pats, op'
2914 2914 # filectxs from the old commit.
2915 2915 if changes or changeset_copies:
2916 2916 # Recompute copies (avoid recording a -> b -> a)
2917 copied = copies.pathcopies(base, wctx, matcher)
2918 if old.p2:
2919 copied.update(copies.pathcopies(old.p2(), wctx, matcher))
2917 copied = copies.pathcopies(base, wctx)
2918 if old.p2():
2919 copied.update(copies.pathcopies(old.p2(), wctx))
2920 2920
2921 2921 # Prune files which were reverted by the updates: if old
2922 2922 # introduced file X and the file was renamed in the working
@@ -202,10 +202,10 b' class filelog:'
202 202
203 203 # for revisions with renames, we have to go the slow way
204 204 node = self.node(rev)
205 if self.iscensored(rev):
206 return 0
205 207 if self.renamed(node):
206 208 return len(self.read(node))
207 if self.iscensored(rev):
208 return 0
209 209
210 210 # XXX if self.read(node).startswith("\1\n"), this returns (size+4)
211 211 # XXX See also basefilectx.cmp.
@@ -609,3 +609,20 b' Modifying a file while the editor is ope'
609 609 > hg status
610 610 > fi
611 611 OK.
612
613 Amending a commit that has copies but not specifying those copies shouldn't
614 cause them to be lost
615
616 $ cd $TESTTMP
617 $ hg init dont-lose-copies; cd dont-lose-copies
618 $ echo r0 > r0; hg commit -qAm "r0"
619 $ hg cp r0 r0_copied; hg commit -qm "copy r0"
620 $ echo hi > new_file_amend_me
621 $ hg status --change . --copies
622 A r0_copied
623 r0
624 $ hg amend -qA new_file_amend_me
625 $ hg status --change . --copies
626 A new_file_amend_me
627 A r0_copied
628 r0
General Comments 0
You need to be logged in to leave comments. Login now