git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: feature request: git svn dommit --preserve-timestamps

From
EWEric Wong <e@80x24.org>
Date
Jun 11, 2016, 11:43 UTC
Message-ID
<20160611114331.GA1678@dcvr.yhbt.net>
In-Reply-To
<878tycmejb.fsf@free.fr>
Peter Münster <pmlists@free.fr> wrote:
Show 6 quoted lines
> On Sat, Jun 11 2016, Eric Wong wrote:
> 
> > The git log after dcommit is tied to the SVN log,
> > so git-svn can only reflect changes which appear in SVN.
> 
> You mean, it's impossible, to keep the original timestamps??

It might be; just not easy; and I haven't looked at the code in ages. But there seems to be similar options for preserving authorship in git-only (see below)

Show 7 quoted lines
> > Unfortunately, you would have to care about svn log as long as
> > SVN exists in your workflow and you need to interact with SVN
> > users.
> 
> In my case, all development happens on Git, SVN is only some sort of
> copy. And when the original timestamps are lost, I've sometimes some
> real problems in finding a specific commit that matches another event.

I'm sorry for your situation and hoping you migrate off SVN entirely, soon :)

Show 7 quoted lines
> > git svn tries hard to work transparently and as close to the
> > behavior of the upstream SVN repo as possible.
> 
> That's why I suggest an option, for use cases as mine. Those, who prefer
> to keep the current behaviour just won't use it.
> 
> If someone could guide me through the code, I could modify it perhaps.

Maybe you could look at how the _use_log_author and _add_author_from options work. I've forgotten their existence until now and I've never used them myself; but apparently they're still there.

Unfortunately, if you have other users using git-svn; it could be tricky to ensure they can see the same timestamps you see...

Previous: Peter MünsterNext: Peter Münster
Message 7 of 9 in “feature request: git svn dommit --preserve-timestamps”
  1. Peter MünsterJun 6, 2016
  2. Eric WongJun 7, 2016
  3. Peter MünsterJun 7, 2016
  4. Eric WongJun 11, 2016
  5. Randall S. BeckerJun 11, 2016
  6. Peter MünsterJun 11, 2016
  7. Eric WongJun 11, 2016
  8. Peter MünsterJun 12, 2016
  9. Peter MünsterJun 8, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.