Expose get_known_graph_ancestry() on Repository API
Bug #495502 reported by
Jelmer Vernooij
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Low
|
Jelmer Vernooij |
Bug Description
affects bzr
status confirmed
importance low
Not all repository implementations provide VersionedFiles. It would be
nice if get_known_
API so that it can be used for these repository formats.
Related branches
lp:~jelmer/bzr/get-known-graph-ancestry
- Robert Collins (community): Disapprove
- Vincent Ladeuil: Approve
-
Diff: 176 lines (+53/-12)7 files modifiedNEWS (+3/-0)
bzrlib/branch.py (+3/-4)
bzrlib/fetch.py (+2/-8)
bzrlib/graph.py (+6/-0)
bzrlib/remote.py (+10/-0)
bzrlib/repository.py (+10/-0)
bzrlib/tests/per_repository/test_repository.py (+19/-0)
Changed in bzr: | |
assignee: | nobody → Jelmer Vernooij (jelmer) |
Changed in bzr: | |
milestone: | none → 2.2.0 |
status: | Confirmed → Fix Released |
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jelmer Vernooij wrote: graph_ancestry( ) was exposed as part of the Repository
> Public bug reported:
>
> affects bzr
> status confirmed
> importance low
>
> Not all repository implementations provide VersionedFiles. It would be
> nice if get_known_
> API so that it can be used for these repository formats.
>
> ** Affects: bzr
> Importance: Low
> Status: Confirmed
>
You *can* always do:
from bzrlib import graph as _mod_graph
kg = _mod_graph. KnownGraph( dict(repo. get_graph( ).iter_ ancestry( [??])))
(You may need to filter out ghosts, which will be repopulated in kg, I'm
not positive.)
It is, essentially, how I would implement Repo.get_ known_graph_ ancestry( ).
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
iXl4ACgkQJdeBCY SNAAPLvgCfULz8i m/TBEc/ PyiPLKFWYoEi RNC6xU3W7sd7OFb yUHVl+j
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAks
bnYAoK7nv/
=jBpX
-----END PGP SIGNATURE-----