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
=== modified file 'test_cvsps_import.py'
--- test_cvsps_import.py 2007-09-26 16:46:11 +0000
+++ test_cvsps_import.py 2011-02-19 01:12:11 +0000
@@ -760,23 +760,28 @@
760 So this test is longer than we would generally prefer.760 So this test is longer than we would generally prefer.
761 """761 """
762 self.setup_basic_tree()762 self.setup_basic_tree()
763 a_control = osutils.pathjoin(self.cvs_root, 'a,v')763
764 a_attic_control = osutils.pathjoin(self.cvs_root, 'Attic', 'a,v')764 # module_root matches what the CVSUpdater instantiated later will see
765 # as the root of the module it addresses
766 module_root = osutils.pathjoin(self.cvs_root, '.')
767
768 a_control = osutils.pathjoin(module_root, 'a,v')
769 a_attic_control = osutils.pathjoin(module_root, 'Attic', 'a,v')
765 self.failUnlessExists(a_control)770 self.failUnlessExists(a_control)
766 self.failIfExists(a_attic_control)771 self.failIfExists(a_attic_control)
767772
768 b_control = osutils.pathjoin(self.cvs_root, 'sub', 'b,v')773 b_control = osutils.pathjoin(module_root, 'sub', 'b,v')
769 b_attic_control = osutils.pathjoin(self.cvs_root, 'sub', 'Attic', 'b,v')774 b_attic_control = osutils.pathjoin(module_root, 'sub', 'Attic', 'b,v')
770 self.failUnlessExists(b_control)775 self.failUnlessExists(b_control)
771 self.failIfExists(b_attic_control)776 self.failIfExists(b_attic_control)
772777
773 c_control = osutils.pathjoin(self.cvs_root, 'c,v')778 c_control = osutils.pathjoin(module_root, 'c,v')
774 c_attic_control = osutils.pathjoin(self.cvs_root, 'Attic', 'c,v')779 c_attic_control = osutils.pathjoin(module_root, 'Attic', 'c,v')
775 self.failIfExists(c_control)780 self.failIfExists(c_control)
776 self.failUnlessExists(c_attic_control)781 self.failUnlessExists(c_attic_control)
777782
778 d_control = osutils.pathjoin(self.cvs_root, 'sub', 'd,v')783 d_control = osutils.pathjoin(module_root, 'sub', 'd,v')
779 d_attic_control = osutils.pathjoin(self.cvs_root, 'sub', 'Attic', 'd,v')784 d_attic_control = osutils.pathjoin(module_root, 'sub', 'Attic', 'd,v')
780 self.failIfExists(d_control)785 self.failIfExists(d_control)
781 self.failUnlessExists(d_attic_control)786 self.failUnlessExists(d_attic_control)
782787

Subscribers

People subscribed via source and target branches

to all changes:
to status/vote changes: