darcs

Issue 1004 darcs patch: Resolve issue885: make get --to-match work with --hashed.

Title darcs patch: Resolve issue885: make get --to-match work with --hashed.
Priority not-our-bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, thorkilnaur
Assigned To
Topics

Created on 2008-08-15.15:28:55 by droundy, last changed 2009-08-27.14:02:57 by admin.

Messages
msg5542 (view) Author: droundy Date: 2008-08-15.15:28:53
On Thu, Aug 14, 2008 at 8:24 AM, Eric Y. Kow <eric.kow@gmail.com> wrote:
> On Thu, Aug 14, 2008 at 07:06:19 -0700, David Roundy wrote:
>> This is wrong.  Importing from Darcs.Repository.HashedRepo into the
>> Darcs.Commands hierarchy is always a bug.
>
> Is this so that we can abstract over repository types, and if so, should
> we say the same about importing Darcs.Repository.DarcsRepo?

That's part of it, but a lot of the reason is just that
Darcs.Repository is intended to be the "safe" API.  This is a less
crucial distinction for DarcsRepo, just because the code DarcsRepo
preexisted Darcs.Repository, but the code in HashedRepo is
intentionally designed to only be used in
Darcs.Repository.Internal--which itself should also never be imported
out of the Darcs.Repository hierarchy, since Darcs.Repository itself
exports the entire "safe" API that is exported from
Darcs.Repository.Internal.

But yes, removing imports of Darcs.Repository.DarcsRepo would also be
good.  The exception is true legacy code (some exists in Get, I
believe, or at least it used to), which might not be worth rewriting.

> If so, it sounds we have like a small refactor/code documentation
> job to do, because the latter is imported in a couple of places.

It's worth looking at, yes.

David
msg5543 (view) Author: droundy Date: 2008-08-15.15:37:36
oops.  Didn't notice that this wasn't formated as a bug tracker email...
History
Date User Action Args
2008-08-15 15:28:55droundycreate
2008-08-15 15:37:38droundysetpriority: not-our-bug
status: unread -> resolved
messages: + msg5543
nosy: - darcs-users
2009-08-06 17:59:35adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, tommy, simon, kowey, thorkilnaur, - droundy
2009-08-06 21:11:11adminsetnosy: - beschmi
2009-08-10 12:54:57adminsetnosy: - tommy, markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-10 23:42:37adminsetnosy: - dagit
2009-08-25 18:09:06adminsetnosy: + darcs-devel, - simon
2009-08-27 14:02:57adminsetnosy: kowey, darcs-devel, thorkilnaur, dmitry.kurochkin