Matthias Fischmann | 2 Oct 15:06 2006
Picon

How to pull all patches recorded before a given date?


hi,

i have a repo with a piece of software, did something stupid at some
point in the last three days, and now want to rewind the status to see
what the version three days ago looks like.  i was hoping for
something like this:

  $ cd /tmp/
  $ darcs get --to-date '2006/09/29 22:00 UTC'

but --to-date doesn't exist.  also, i have found little documentation
on --to-match and --to-patch.  these here pull all the patches (also
the newer ones), and the two latter ones also complain about me being
confused:

/tmp$ darcs get --to-match='hash
20061001203651-71207-f9d03a755eb7247a3fcb9251d2c3352157cf6a09' ~/something
/tmp$ darcs get --to-patch='hash
20061001203651-71207-f9d03a755eb7247a3fcb9251d2c3352157cf6a09' ~/something
/tmp$ darcs get --to-patch='20061001203651-71207-f9d03a755eb7247a3fcb9251d2c3352157cf6a09' ~/something

i am not sure whether this is because of the partial order of patches
that puts the named patch at the top of the repo, or whether i missed
something.

questions:

 (1) what do you people do in this particular situation?

(Continue reading)

Eric Y. Kow | 2 Oct 15:22 2006
Picon

Re: How to pull all patches recorded before a given date?

On Mon, Oct 02, 2006 at 15:06:10 +0200, Matthias Fischmann wrote:
>   $ darcs get --to-date '2006/09/29 22:00 UTC'

Try --to-match 'date "2006-09-29 22:00Z"'

>  (1) what do you people do in this particular situation?
> 
>  (2) is there any documentation on the patch and match arguments that
>      i missed?

See the documentation for --match.

:-)

--

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://www.abridgegame.org/mailman/listinfo/darcs-users
Thomas Hühn | 1 Oct 09:36 2006
Picon

change patch summary

Hi

I have recorded a patch and made a mistake in the summary describing the
change.

Since then I have had a few other patches and a tagging operation.

Is there a way to just change the summary without trying to fiddle with
the internals in _darcs? I mean, it's just human-readable meta data,
nothing another patch could really depend on, isn't it?

Thomas
Korusef | 2 Oct 16:12 2006
Picon

Re: change patch summary

On 10/1/06, Thomas Hühn <huehn <at> usenet.arcornews.de> wrote:
...
> Is there a way to just change the summary without trying to fiddle with
> the internals in _darcs? I mean, it's just human-readable meta data,
> nothing another patch could really depend on, isn't it?

The only way I know about is to unrecord the wrong patch and record it again.
But I think it'll change hash of that patch.

--

-- 
Zdravi Korusef [Libor Dener]
            (: CauCau :)
_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://www.abridgegame.org/mailman/listinfo/darcs-users
Matthias Fischmann | 2 Oct 16:13 2006
Picon

Re: How to pull all patches recorded before a given date?


On Mon, Oct 02, 2006 at 03:22:04PM +0200, Eric Y. Kow wrote:
> On Mon, Oct 02, 2006 at 15:06:10 +0200, Matthias Fischmann wrote:
> >   $ darcs get --to-date '2006/09/29 22:00 UTC'
> 
> Try --to-match 'date "2006-09-29 22:00Z"'

| darcs: Can't support fancy dates.
| $ darcs --version
| 1.0.3 (release)

I guess I have to upgrade?  Will do after lunch.

> See the documentation for --match.

Oops, found it.  Section 'Common options to darcs commands' on
http://abridgegame.org/darcs/manual/.  I've almost been there, just
should have kept reading.  Sorry...  (-:

(Something about this document has changed since 1.0.3...  I am
pleased and impressed.)

Sorry for the stupid question, thanks a lot for the quick help,
Matthias
_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://www.abridgegame.org/mailman/listinfo/darcs-users
(Continue reading)

Matthias Fischmann | 2 Oct 18:49 2006
Picon

Re: How to pull all patches recorded before a given date?


me again,

installing darcs finally works, but there were some obstacles that
might be bugs or not.  feel free to enlighten me, or use this as a bug
report.  i checked out darcs from

darcs get http://www.abridgegame.org/repos/darcs/

and got complaints that symbols were multiply defined in
Repository.lhs, lines 42 and 43.  the following patch works:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
darcs$ darcs diff
diff -rN old-darcs/Repository.lhs new-darcs/Repository.lhs
42c42
< import DarcsRepo ( seekRepo, youNeedToBeInRepo )
---
> -- import DarcsRepo ( seekRepo, youNeedToBeInRepo )
61a62,66
> seekRepo :: IO Bool -> Either String FilePath -> IO (Either String FilePath)
> seekRepo = DarcsRepo.seekRepo
> youNeedToBeInRepo :: String
> youNeedToBeInRepo = DarcsRepo.youNeedToBeInRepo
> 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

(and i just realize that disabling -Werror may have done the trick
just as well), but there should be a better way to solve this issue,
right?  why is this not bothering anybody except me?
(Continue reading)

Tommy Pettersson | 2 Oct 19:13 2006
Picon
Picon
Picon

Re: change patch summary

On Mon, Oct 02, 2006 at 04:12:23PM +0200, Korusef wrote:
> On 10/1/06, Thomas Hühn <huehn <at> usenet.arcornews.de> wrote:
> ...
> >Is there a way to just change the summary without trying to fiddle with
> >the internals in _darcs? I mean, it's just human-readable meta data,
> >nothing another patch could really depend on, isn't it?

Funny or not, but it's the other way around. Meta data: patch
name, time, long comment and so on, is hashed and can not be
changed even by poking around inside _darcs, whereas the actual
data that is the changes performed by the patch is not hashed,
so you could easily edit that. Of course doing so just as easily
results in an inconsistent repo.

> The only way I know about is to unrecord the wrong patch and record it 
> again.
> But I think it'll change hash of that patch.

Yes. There's also no way of losing (changing) the unwanted patch
without also losing (obliterating) any tag that tags it. That's
the whole idea with tags. If it is all private patches and in
only a few repos, it is not so much work to get a temp repo by
the tag in question, unrecord the tag, unrecord and record the
faulty patch with a new long comment, and retag. The tag and the
patch are now "new" to the other repos (since their hash values
are different). Pulling them will result in massive conflicts
with the old ones. But it should now be possible to first
obliterate the old versions in all repos and then pull in the
new versions from the temp repo.

(Continue reading)

Eric Y. Kow | 2 Oct 20:16 2006
Picon

Re: How to pull all patches recorded before a given date?

Hi again,

On Mon, Oct 02, 2006 at 18:49:55 +0200, Matthias Fischmann wrote:
> > seekRepo :: IO Bool -> Either String FilePath -> IO (Either String FilePath)
> > seekRepo = DarcsRepo.seekRepo
> > youNeedToBeInRepo :: String
> > youNeedToBeInRepo = DarcsRepo.youNeedToBeInRepo

You're not running GHC 6.4, are you?

If so, this is a known issue.  Upgrading to GHC 6.4.1 should do the
trick.

--

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://www.abridgegame.org/mailman/listinfo/darcs-users
Matthias Fischmann | 2 Oct 21:12 2006
Picon

Re: How to pull all patches recorded before a given date?


On Mon, Oct 02, 2006 at 08:16:19PM +0200, Eric Y. Kow wrote:
> On Mon, Oct 02, 2006 at 18:49:55 +0200, Matthias Fischmann wrote:
> > > seekRepo :: IO Bool -> Either String FilePath -> IO (Either String FilePath)
> > > seekRepo = DarcsRepo.seekRepo
> > > youNeedToBeInRepo :: String
> > > youNeedToBeInRepo = DarcsRepo.youNeedToBeInRepo
> 
> You're not running GHC 6.4, are you?

I am.  Problem solved, then.

thanks again,
matthias
_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://www.abridgegame.org/mailman/listinfo/darcs-users
Pedro Melo | 3 Oct 13:40 2006

Too many open files ?

Hi,

I'm trying a darcs get on a local repo to create a new branch. I have  
both versions 1.0.7 (PPC) and 1.0.8 (Intel) versions of darcs on my  
MacBook.

Version 1.0.7 works perfectally, but version 1.0.8 fails with:
darcs-1.0.8-intel: ./sites/Forums/root/images/icoinfo.gif: openFile:  
resource exhausted (Too many open files)

Any suggestions on next steps to do to find this problem?

I'm using binaries available at darcs.net.

Thanks in advance,
--
Pedro Melo
JID: xmpp:melo <at> simplicidade.org

Gmane