Re: [darcs-users] How to look at older versions of a file

2005-12-01 Thread Gaetan Lehmann
On Thu, 01 Dec 2005 06:35:06 +0100, Alberto Bertogli [EMAIL PROTECTED] wrote: On Wed, Nov 30, 2005 at 11:10:57PM +, Daniel Carrera wrote: Richard A. Smith wrote: darcs unpull You can then select the patches you want to back out and the copy of the file you desire will be the version

Re: [darcs-users] How to look at older versions of a file

2005-12-01 Thread Stephen J. Turnbull
David == David Rosenstrauch Rosenstrauch writes: David How do I go back to see/compare various versions of a file? Identifying a version in darcs is hard, since a version is conceptually what you get when you apply a sequence of patches to an empty repository. In order to have a handle,

RE: [darcs-users] How to look at older versions of a file

2005-12-01 Thread Rosenstrauch, David
Or let's say that I create a copy of my repo, and I'd like to roll it back to, say, a tag that I placed a couple of weeks back. How would I go about doing that. darcs unpull You can then select the patches you want to back out and the copy of the file you desire will be the

Re: [darcs-users] How to look at older versions of a file

2005-12-01 Thread zooko
cp -r my_project/ my_branch/ Tip: that will work, but it's more efficient to do darcs get my_project my_branch Darcs will (if the platform supports it) hardlink the immutable metadata. In other words, it will use up less disk space if you do it this way. Regards, Zooko

Re: [darcs-users] How to look at older versions of a file

2005-12-01 Thread zooko
Yes. You can do darcs annotate file -p patch and parse the annotate output. If you just want the file contents, write a script that parses the XML output and show you the clean file. If you need sample code, you can find it in darcsweb's annotate parsing. Oh, well, it's too tempting;

[darcs-users] How to look at older versions of a file

2005-11-30 Thread Rosenstrauch, David
I'm a bit of a darcs newbie here. I definitely am loving it so far, but am still fleshing out some of the details. How do I go about looking at older versions of a file with darcs? With CVS, for example, I can use the history command, the log command, I can pull old versions, etc. And in my

RE: [darcs-users] How to look at older versions of a file

2005-11-30 Thread Rosenstrauch, David
Also, is there such a concept as branches in darcs, and if so, how do I accomplish that? Thanks, DR -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rosenstrauch, David Sent: Wednesday, November 30, 2005 4:58 PM To: darcs-users@darcs.net Subject:

Re: [darcs-users] How to look at older versions of a file

2005-11-30 Thread Daniel Carrera
Rosenstrauch, David wrote: Also, is there such a concept as branches in darcs, and if so, how do I accomplish that? cp -r my_project/ my_branch/ :-) Darcs is a distributed SCM system. In other words, it's branches with steroids! Literally, every copy of a repository is a branch. There is

RE: [darcs-users] How to look at older versions of a file

2005-11-30 Thread Rosenstrauch, David
OK, fair enough. I guess I actually knew that if I had thought about it a bit more. (Sorry.) It just wasn't completely intuitive to me right off the bat. I guess the version question is more what I'm interested in though. How do I go back to see/compare various versions of a file? Or let's

Re: [darcs-users] How to look at older versions of a file

2005-11-30 Thread Richard A. Smith
Rosenstrauch, David wrote: How do I go back to see/compare various versions of a file? Versions of files don't exist in darcs only patches that change files. Or let's say that I create a copy of my repo, and I'd like to roll it back to, say, a tag that I placed a couple of weeks back. How

[Fwd: Re: [darcs-users] How to look at older versions of a file]

2005-11-30 Thread Daniel Carrera
Original Message Subject: Re: [darcs-users] How to look at older versions of a file Date: Wed, 30 Nov 2005 22:57:00 + From: Daniel Carrera [EMAIL PROTECTED] Organization: INGOTs To: Rosenstrauch, David [EMAIL PROTECTED] References: [EMAIL PROTECTED] Rosenstrauch, David

Re: [darcs-users] How to look at older versions of a file

2005-11-30 Thread Daniel Carrera
Richard A. Smith wrote: darcs unpull You can then select the patches you want to back out and the copy of the file you desire will be the version you are interested in. What would be really nice is to output the contents of one specific file as it was before patch xyz was applied. I think

Re: [darcs-users] How to look at older versions of a file

2005-11-30 Thread Alberto Bertogli
On Wed, Nov 30, 2005 at 11:10:57PM +, Daniel Carrera wrote: Richard A. Smith wrote: darcs unpull You can then select the patches you want to back out and the copy of the file you desire will be the version you are interested in. What would be really nice is to output the contents of