[patch] exclude .bzrignore from export, this time with tests
Robert Collins
robertc at robertcollins.net
Mon Jan 2 21:09:03 GMT 2006
On Fri, 2005-12-30 at 13:37 -0600, John A Meinel wrote:
> Jamie Wilkinson wrote:
> > This one time, at band camp, John A Meinel wrote:
> >> I would just do:
> >>
> >> mkdir a
> >> cd a
> >> bzr init
> >> echo a > a
> >> bzr add
> >> bzr commit -m a
> >> bzr ignore 'something'
> >> bzr commit -m "ignoring"
> >>
> >> bzr export ../dir_export
> >>
> >> cd ..
> >> files = sorted(os.listdir('dir_export'))
> >> self.assertEqual(['a'], files)
> >>
> >> Naturally the above needs to be changed into python commands. But I
> >> think it gives the idea. Just do an export to a directory, and make sure
> >> that there is no .bzr/ directory and no .bzrignore file.
> >> If you have the test, it won't re-appear.
> >
> > Neat, it was the listdir part I had the mental block on :)
> >
> > Committed at revno 1528 in the same branch.
>
> Looks good. Now that it has been cleaned up, I'm +1. If we get another,
> I'll pull it into my integration branch.
+1 based on this thread alone :).
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060103/5e009772/attachment.pgp
More information about the bazaar
mailing list