_darcs/prefs/email in patch-tag.com repos

0 views
Skip to first unread message

Magnus Therning

unread,
Oct 8, 2009, 3:57:51 AM10/8/09
to patch-tag-users
Is there some way of getting my email address into _darcs/prefs/email
in patch-tag.com repos?

It would help contributors with using "darcs send".

/M

thomas hartman

unread,
Oct 8, 2009, 5:07:48 AM10/8/09
to patch-tag-users
Hm... is the desired behavior that your primary patch-tag email (ie
the email you signed up with) gets put into _darcs/prefs/email?

Is that something everyone wants?

Magnus Therning

unread,
Oct 8, 2009, 5:22:49 AM10/8/09
to patch-tag-users
On Oct 8, 10:07 am, thomas hartman <thomashartm...@googlemail.com>
wrote:
> Hm... is the desired behavior that your primary patch-tag email (ie
> the email you signed up with) gets put into _darcs/prefs/email?

Yes, that would be _my_ preference. At least for now.

> Is that something everyone wants?

I can see that it'd be useful to allow control of this per-repo.

/M

thomas hartman

unread,
Oct 8, 2009, 5:49:14 AM10/8/09
to patch-tag-users
so, you might want different patch-send emails for different repos you
control?

Magnus Therning

unread,
Oct 8, 2009, 6:00:15 AM10/8/09
to patch-tag-users
On Oct 8, 10:49 am, thomas hartman <thomashartm...@googlemail.com>
wrote:
> so, you might want different patch-send emails for different repos you
> control?

Haha, I'm being an archetypical customer am I not? :-)

What I'd like right now:

I'd like the email address I signed up to patch-tag with in the
_darcs/prefs/email on all my repos, to make it easier for contributors
to send in patches. I'd like this for all my existing repos, and also
to happen automatically on creation of new repos.

What I think would be nice to have in the longer term:

A way of controlling the address that goes into the _darcs/prefs/
email on a per-repo basis, e.g. as part of the per-repo-admin UI on
the site. The defaul email address would be the one used to sign up
to patch-tag.

Daniel Dickison

unread,
Oct 8, 2009, 7:50:00 AM10/8/09
to patch-t...@googlegroups.com
I would be happy with that behavior.

Sent from my iPhone

On Oct 8, 2009, at 5:07, thomas hartman

Thomas Hartman

unread,
Oct 9, 2009, 9:23:30 PM10/9/09
to patch-t...@googlegroups.com, darcs-users
At the request of users, I started to implement a behavior in
patch-tag where the _darcs/prefs/email gets set to the primary email
of the user that owns the repo.

However, I don't think this will be useful, because when I darcs get a
repo with the _darcs/prefs/email file set, the fetched repo is missing
that file.

Am I missing something?

root@ubuntu:/tmp# cat /jail/privaterepos/mae/mae-testproject/_darcs/prefs/email
m...@gmail.com
root@ubuntu:/tmp# darcs get /jail/privaterepos/mae/mae-testproject
Copying patches, to get lazy repository hit ctrl-C...
Finished getting.
root@ubuntu:/tmp# ls mae-testproject/_darcs/prefs/
binaries boring defaultrepo motd repos sources
--
Need somewhere to put your code? http://patch-tag.com
Want to build a webapp? http://happstack.com

thomas hartman

unread,
Oct 11, 2009, 1:19:12 AM10/11/09
to patch-tag-users
quoth Max Batcher on the darcs users mailing list: "Darcs send checks
"upstream" in order to determine which patches need to be sent, just
like darcs push, and just like darcs push it defaults this check to
_darcs/prefs/defaultrepo. Darcs doesn't copy the _darcs/prefs/email,
it simply expects to be provided a remote repo."

So, it seems creating the _darcs/prefs/email won't do anything useful.

However, I did try to get patch-tag to do its bit anyway, by improving
the "repo commands" section to suggest what users can do to send
patches to the repo owner, eg:

http://patch-tag.com/r/olegfink/ais/darcscommands

This and other incremental improvements are discussed at the weekly
patch-tag news recap:

http://blog.patch-tag.com/2009/10/11/news-and-new-features/

Cheers. Keep tagging...

On Oct 9, 6:23 pm, Thomas Hartman <thomashartm...@googlemail.com>
wrote:
> At the request of users, I started to implement a behavior in
> patch-tag where the _darcs/prefs/email gets set to the primary email
> of the user that owns the repo.
>
> However, I don't think this will be useful, because when I darcs get a
> repo with the _darcs/prefs/email file set, the fetched repo is missing
> that file.
>
> Am I missing something?
>
> root@ubuntu:/tmp# cat /jail/privaterepos/mae/mae-testproject/_darcs/prefs/email
> m...@gmail.com
> root@ubuntu:/tmp# darcs get /jail/privaterepos/mae/mae-testproject
> Copying patches, to get lazy repository hit ctrl-C...
> Finished getting.
> root@ubuntu:/tmp# ls mae-testproject/_darcs/prefs/
> binaries  boring  defaultrepo  motd  repos  sources
>
> On Thu, Oct 8, 2009 at 4:50 AM, Daniel Dickison
>
>
>
> <danieldicki...@gmail.com> wrote:
>
> > I would be happy with that behavior.
>
> > Sent from my iPhone
>
> > On Oct 8, 2009, at 5:07, thomas hartman
> > <thomashartm...@googlemail.com> wrote:
>
> >> Hm... is the desired behavior that your primary patch-tag email (ie
> >> the email you signed up with) gets put into _darcs/prefs/email?
>
> >> Is that something everyone wants?
>
> >> On Oct 8, 12:57 am, Magnus Therning <mag...@therning.org> wrote:
> >>> Is there some way of getting my email address into _darcs/prefs/email
> >>> in patch-tag.com repos?
>
> >>> It would help contributors with using "darcs send".
>
> >>> /M
>
> --
> Need somewhere to put your code?http://patch-tag.com

Eric Y. Kow

unread,
Oct 11, 2009, 3:44:48 AM10/11/09
to patch-t...@googlegroups.com, darcs...@darcs.net
Hi,

On Sat, Oct 10, 2009 at 22:19:12 -0700, thomas hartman wrote:
> quoth Max Batcher on the darcs users mailing list: "Darcs send checks
> "upstream" in order to determine which patches need to be sent, just
> like darcs push, and just like darcs push it defaults this check to
> _darcs/prefs/defaultrepo. Darcs doesn't copy the _darcs/prefs/email,
> it simply expects to be provided a remote repo."
>
> So, it seems creating the _darcs/prefs/email won't do anything useful.

I'm sure you saw Trent's explanation on the darcs-users mailing list,
but just in case: darcs uses the *remote* _darcs/prefs/email to
determine where to send the email to, so it would be very useful indeed.

I realise that our use of _darcs/prefs is very confusing because we
use the same directory for three very different things:

remote prefs:
- motd <-- this could also be useful for patch-taggers
- email
local prefs:
- author
- defaultrepo
- defaults
- sources
- boring
- binaries
internal metadata:
- prefs <-- used by setpref

Darcs users/hackers : perhaps a good thing would be for future darcs to
have a _darcs/localprefs to avoid this confusion. I don't think there
is much we can do about _darcs/prefs/prefs, on the other hand.

Regards,

--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9

thomas hartman

unread,
Oct 11, 2009, 10:30:55 PM10/11/09
to patch-tag-users
that's great!

I'll get on it.
>  application_pgp-signature_part
> < 1KViewDownload

Thomas Hartman

unread,
Oct 14, 2009, 7:28:24 PM10/14/09
to Max Battcher, darcs...@darcs.net, patch-t...@googlegroups.com
OK folks, making patch-tag darcs send friendly is done.

http://blog.patch-tag.com/2009/10/14/patch-tag-is-now-darcs-send-friendly/

Let me know if you have any idea for additional improvements.

:)

thomas.

On Sun, Oct 11, 2009 at 7:27 AM, Eric Kow <ko...@darcs.net> wrote:
> On Sun, Oct 11, 2009 at 04:54:38 -0400, Max Battcher wrote:
>> On 10/11/2009 4:02, Eric Kow wrote:
>> >Also, I should correct one of the errors in my earlier message:
>> >_darcs/prefs/sources should be treated as internal Darcs metadata,
>> >not a local pref
>>
>> I would say that's a fine line distinction right there-- I've had to
>> edit _darcs/prefs/sources for various reasons and I could see
>> someone manually pruning it as appropriate...
>
> I we need to think a bit more carefully about this, especially why we
> make these distinctions.  I seem to be confusing myself at least!
>
> The reason why I first said it was local information was because as you
> said above, you sometimes edit it as appropriate.
>
> The reason I later backtracked and said it was internal metadata was
> because Darcs manipulates it and consults it from remote repos.
> Notably, darcs copies the _darcs/prefs/sources from the remote repo and
> augments it with local information.  Editing _darcs/prefs/prefs should
> be probably discouraged; editing the _darcs/prefs/sources on the other
> hand... is maybe kosher.  Confusing the issue is the fact that Darcs
> does not currently handle the _darcs/prefs/sources very intelligently.
>
> See
> - http://bugs.darcs.net/issue1599 (authomatically expire unused caches)
> - http://bugs.darcs.net/issue1159 (unionCache does not adjust cache
>  paths wrt remote repository location)
>
> Perhaps if Darcs were smarter about caches, users wouldn't need to
> intervene manually and we really can treat it as purely internal
> data.


>
> --
> Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
> PGP Key ID: 08AC04F9
>

> _______________________________________________
> darcs-users mailing list
> darcs...@darcs.net
> http://lists.osuosl.org/mailman/listinfo/darcs-users
>
>

--
Need somewhere to put your code? http://patch-tag.com

Reply all
Reply to author
Forward
0 new messages