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

git svn find-rev -- search for nearest SVN rev

From
CMCraig McQueen <craig.mcqueen@innerrange.com>
Date
Feb 21, 2017, 02:54 UTC
Message-ID
<5500469A22567C4BAF673A6E86AFA3A40295E64BC779@IR-CENTRAL.corp.innerrange.com>
I'm using git svn with a project that uses SubWCRev.exe to incorporate the SVN revision into the build number.
I've updated it to use 'git svn find-rev HEAD' in git svn usage, to achieve the same effect.
This works until I have a local commit that hasn't yet been pushed to SVN with 'git svn dcommit'. Then, 'git svn find-rev HEAD' returns nothing.
It would be really great if the '--before' and '--after' switches would work in this case. Then I could use 'git svn find-rev --before HEAD'.
-- 
Craig McQueen
Message 1 of 1 in “git svn find-rev -- search for nearest SVN rev”
  1. Craig McQueenFeb 21, 2017

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.