Mercurial > hg > mercurial-crew-with-dirclash
annotate tests/test-copy2 @ 1237:227cfbe34109
Fix off by one in convert-repo tags
--- crew.orig/contrib/convert-repo 2005-07-16 11:52:06.000000000 -0400
+++ crew/contrib/convert-repo 2005-09-02 02:58:14.000000000 -0400
@@ -86,9 +86,7 @@ class convert_git:
for f in os.listdir(self.path + "/.git/refs/tags"):
try:
h = file(self.path + "/.git/refs/tags/" + f).read().strip()
- p, a, d, m = self.getcommit(h)
- if not p: p = [h] # git is ugly, don't blame me
- tags[f] = p[0]
+ tags[f] = h
except:
pass
return tags
--
_______________________________________________
Mercurial mailing list
Mercurial@selenic.com
http://selenic.com/mailman/listinfo/mercurial
author | mason@suse.com |
---|---|
date | Tue, 13 Sep 2005 19:32:43 -0500 |
parents | 235e0effa672 |
children | a5355fa5e33a |
rev | line source |
---|---|
1117 | 1 #!/bin/sh |
2 | |
3 hg init | |
4 echo foo > foo | |
5 hg add foo | |
6 hg commit -m1 -d"0 0" | |
7 | |
8 echo "# should show copy" | |
9 cp foo bar | |
10 hg copy foo bar | |
1168
235e0effa672
Fixed two tests to run with bourne shell.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1127
diff
changeset
|
11 hg debugstate|grep '^copy' |
1117 | 12 |
13 echo "# shouldn't show copy" | |
14 hg commit -m2 -d"0 0" | |
1168
235e0effa672
Fixed two tests to run with bourne shell.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1127
diff
changeset
|
15 hg debugstate|grep '^copy' |
1117 | 16 |
17 echo "# should match" | |
18 hg debugindex .hg/data/foo.i | |
19 hg debugrename bar | |
20 | |
21 echo bleah > foo | |
22 echo quux > bar | |
23 hg commit -m3 -d"0 0" | |
24 | |
25 echo "# should not be renamed" | |
26 hg debugrename bar | |
27 | |
28 cp foo bar | |
29 hg copy foo bar | |
30 echo "# should show copy" | |
1168
235e0effa672
Fixed two tests to run with bourne shell.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1127
diff
changeset
|
31 hg debugstate|grep '^copy' |
1117 | 32 hg commit -m3 -d"0 0" |
33 | |
34 echo "# should show no parents for tip" | |
35 hg debugindex .hg/data/bar.i | |
36 echo "# should match" | |
37 hg debugindex .hg/data/foo.i | |
38 hg debugrename bar | |
39 | |
40 echo "# should show no copies" | |
1168
235e0effa672
Fixed two tests to run with bourne shell.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1127
diff
changeset
|
41 hg debugstate|grep '^copy' |
1127
19b048da4da9
Fixed test-copy2 with only looking at copied files.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1117
diff
changeset
|
42 |
19b048da4da9
Fixed test-copy2 with only looking at copied files.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1117
diff
changeset
|
43 exit 0 |