Merge lp:~maxb/bzr-cvsps-import/fix-test into lp:bzr-cvsps-import

Proposed by Max Bowsher
Status: Rejected
Rejected by: Max Bowsher
Proposed branch: lp:~maxb/bzr-cvsps-import/fix-test
Merge into: lp:bzr-cvsps-import
Diff against target: 39 lines (+13/-8)
1 file modified
test_cvsps_import.py (+13/-8)
To merge this branch: bzr merge lp:~maxb/bzr-cvsps-import/fix-test
Reviewer Review Type Date Requested Status
John A Meinel Needs Information
Vincent Ladeuil Approve
Review via email: mp+50421@code.launchpad.net

Commit message

Fix test_real_cvs to expect paths including the module '.'

To post a comment you must log in.
Revision history for this message
Vincent Ladeuil (vila) wrote :

<vila> maxb: this fix looks and feels correct, yet... I should miss something. Why did it fail ?
<jelmer> it also looks good here, but my CVS foo is weak.
<maxb> Because of paths containing /./ which were not expected
<vila> Haaaa

Please mention that in a comment, otherwise: good to land !

review: Approve
Revision history for this message
Max Bowsher (maxb) wrote :

<jelmer> maxb: did r64 break the testsuite?
<maxb> oh
<maxb> yes it probably did
<maxb> hmm
<maxb> Perhaps this deserves further examination then

Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/19/2011 2:11 AM, Max Bowsher wrote:
> Max Bowsher has proposed merging lp:~maxb/bzr-cvsps-import/fix-test into lp:bzr-cvsps-import.
>
> Requested reviews:
> Bazaar Developers (bzr)
>
> For more details, see:
> https://code.launchpad.net/~maxb/bzr-cvsps-import/fix-test/+merge/50421

Off-hand this feels like the wrong fix. Since '.' is a special module,
it doesn't seem like it should be present in the path that files are
being imported from.

At least, importing foo/./bar seems weird, even if it isn't illegal.

 review: needsinfo

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1uFHcACgkQJdeBCYSNAAMM0wCg0lzSZVC94myXmQ7Xk2u8YEZ9
QPYAoIkf4AxCUwHFm4eAhuIVXI89wsDe
=Edky
-----END PGP SIGNATURE-----

review: Needs Information

Unmerged revisions

65. By Max Bowsher

Fix test_real_cvs to expect paths including the module '.'

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'test_cvsps_import.py'
2--- test_cvsps_import.py 2007-09-26 16:46:11 +0000
3+++ test_cvsps_import.py 2011-02-19 01:12:11 +0000
4@@ -760,23 +760,28 @@
5 So this test is longer than we would generally prefer.
6 """
7 self.setup_basic_tree()
8- a_control = osutils.pathjoin(self.cvs_root, 'a,v')
9- a_attic_control = osutils.pathjoin(self.cvs_root, 'Attic', 'a,v')
10+
11+ # module_root matches what the CVSUpdater instantiated later will see
12+ # as the root of the module it addresses
13+ module_root = osutils.pathjoin(self.cvs_root, '.')
14+
15+ a_control = osutils.pathjoin(module_root, 'a,v')
16+ a_attic_control = osutils.pathjoin(module_root, 'Attic', 'a,v')
17 self.failUnlessExists(a_control)
18 self.failIfExists(a_attic_control)
19
20- b_control = osutils.pathjoin(self.cvs_root, 'sub', 'b,v')
21- b_attic_control = osutils.pathjoin(self.cvs_root, 'sub', 'Attic', 'b,v')
22+ b_control = osutils.pathjoin(module_root, 'sub', 'b,v')
23+ b_attic_control = osutils.pathjoin(module_root, 'sub', 'Attic', 'b,v')
24 self.failUnlessExists(b_control)
25 self.failIfExists(b_attic_control)
26
27- c_control = osutils.pathjoin(self.cvs_root, 'c,v')
28- c_attic_control = osutils.pathjoin(self.cvs_root, 'Attic', 'c,v')
29+ c_control = osutils.pathjoin(module_root, 'c,v')
30+ c_attic_control = osutils.pathjoin(module_root, 'Attic', 'c,v')
31 self.failIfExists(c_control)
32 self.failUnlessExists(c_attic_control)
33
34- d_control = osutils.pathjoin(self.cvs_root, 'sub', 'd,v')
35- d_attic_control = osutils.pathjoin(self.cvs_root, 'sub', 'Attic', 'd,v')
36+ d_control = osutils.pathjoin(module_root, 'sub', 'd,v')
37+ d_attic_control = osutils.pathjoin(module_root, 'sub', 'Attic', 'd,v')
38 self.failIfExists(d_control)
39 self.failUnlessExists(d_attic_control)
40

Subscribers

People subscribed via source and target branches

to all changes:
to status/vote changes: