[MERGE] Reveal location of .bazaar in `bzr version`

John Whitley whitley at bangpath.org
Mon Mar 12 21:05:16 GMT 2007


I've created a basic blackbox test for 'bzr version'; feedback is  
appreciated.

The version command has text that is only output if 'bzr version' is  
being run from within a bzr checkout.  I haven't tested for that part  
of the output, as I'm undecided on the best way to handle this.  The  
two approaches that have come to mind are: 1) The test alters its  
behavior based on whether it bzr is running from a checkout, or 2)  
the test monkey-patches bzrlib.version._get_bzr_source_tree() in the  
test in order to comprehensively test this code.  #1 implies that no  
one test run can cover both cases, and either replicates the  
version._get_bzr_source_tree() function or calls it -- I'm lukewarm  
to both of those options.

-- John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 90467-2.bzb
Type: application/octet-stream
Size: 6770 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070312/9a4bd51c/attachment.obj 


More information about the bazaar mailing list