[RFC] Update should mention WHAT it is up to date with
John Arbash Meinel
john at arbash-meinel.com
Thu Dec 10 04:19:59 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>> Is there a bzrlib function to take a branch.base URL and shorten it (for
>> example, file:/// URLs could have the URL prefix removed)? Should we try to
>> use "." in the shortened form if possible?
>
> Generally things like that would be in urlutils. There are functions
> to turn a url into a local path if possible.
>
> There was a thread a while ago about a display_url or human_url but I
> don't think it was implemented. Would be nice. You could always add
> a stubby implementation ("return url") to start with.
>
urlutils.unescape_for_display(url, output_encoding)
so
out_path = urlutils.unescape_for_display(url, self.outf.encoding)
self.outf.write('Updating from %s\n' % (out_path,))
>> For tests that have very long and varying branch names, should I just change
>> assertEndsWith("Up to date at revision 1\n") to an appropriate
>> assertContainsRe?
>
> You could look at using Vincent's shell-like tests where you can just
> show some sample output. I'm sure he would welcome questions or
> feedback.
>
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAksgdu8ACgkQJdeBCYSNAAMAnQCgtCSics/SYAg+2ITrAlSSR8xD
Mw4AoJVlIwPAte9oXWAWHthCng3nkGmt
=FhNc
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list