[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Revisions with wrong chronologic order

From: Kylo Ginsberg <kylo.ginsberg_at_gmail.com>
Date: 2007-04-11 19:07:42 CEST

On 4/11/07, Ryan Schmidt <subversion-2007b@ryandesign.com> wrote:
> On Apr 11, 2007, at 10:29, Kylo Ginsberg wrote:
>
> > I have a scenario where I would like to dump a small repository and
> > load it into a large one. Essentially I want to tack all the
> > revisions of the small repo on to the tail end of the large one with
> > their date being "at load time".
> >
> But you can change a revision's date and time. You may be able to
> manipulate the dumpfile in some way. However, I recommend just using
> "svn propset --revprop -r 123 svn:date foo" where "123" is the
> revision number and "foo" is a date in Subversion format (which you
> can discover by running "svn propget --revprop -r 123 svn:date"). You

Ok, this would be easy to script. The svnbook says the svn:date is in
"ISO format" but doesn't reference a particular standard. However, it
appears to be a UTC timecode with microsecond resolution. I can ape
it with date (slightly ugly since date doesn't have a microsecond
option):
echo `date -u +%Y-%m-%dT%H:%M:%S.%N | cut -c-26`Z
Does that format look right?

And given that microsecond resolution, might subversion get confused
if several hundred revisions had exactly the same time? I can also
write the script such that it pulls a unique time for each revision.

Thanks,
Kylo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 11 19:08:14 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.