You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jacob Weber <ja...@jacobweber.com> on 2009/05/01 17:43:47 UTC

How to show history of a named path?

If I delete a file, then create a new file with the same name, svn log will only show me the new file's history.

I know I can pass file@peg, but then I have to know the right peg revision. Plus I might not even know that there *was* a file with that name before the current one. Is there a way to show the history of anything that was ever at a given path?

Thanks,
Jacob

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2017449

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: How to show history of a named path?

Posted by Jacob Weber <ja...@jacobweber.com>.
I understand why I don't see the old history, without passing a peg revision.

But I'm surprised that there's no way to ask for all history of a given filename. Sometimes a file's path is itself important, regardless of where the file at that path came from. The manual page for "peg and operative revisions" gives some examples of where someone might want this.

Plus, there are situations where you almost HAVE to delete and recreate a path. If you merge a branch into the trunk with --reintegrate, Subversion requires you to delete and re-create the branch, if you want to use it again. But then there's no way to know that that branch had a history before it was reintegrated and re-created.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2017616

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: How to show history of a named path?

Posted by Bob Archer <Bo...@infor.com>.
> If I delete a file, then create a new file with the same name, svn log
> will only show me the new file's history.

This is because the file is not an ancestor of the previous file. 

> I know I can pass file@peg, but then I have to know the right peg
> revision. Plus I might not even know that there *was* a file with that
> name before the current one. Is there a way to show the history of
> anything that was ever at a given path?

There is the --ignore-ancestry switch on the merge command. But, I don't see it on the log command.

Perhaps you should delete your file from HEAD... and restore the original version and apply any changes to it. 

I would say, don't delete a file and recreate it if they share ancestry.

I guess it's like the old joke...

Dr... my arm hurts when I move it like this. To which the Dr. says, "then don't move it like that."

BOb

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2017509

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].