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

Re: git-svn tags and branches

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
Aug 27, 2007, 17:08 UTC
Message-ID
<fav0e9$bbh$1@sea.gmane.org>
In-Reply-To
<A0329662-9C87-44C2-84E4-4F60DCC1E95F@lrde.epita.fr>
On Monday 27 August 2007 17:36, Benoit SIGOURE wrote:
Show 20 quoted lines
> On Aug 27, 2007, at 5:31 PM, Mike Hommey wrote:
> 
>> On Mon, Aug 27, 2007 at 05:09:30PM +0200, David Kastrup  
>> <dak@gnu.org> wrote:
>>> I actually don't see how one can safely make them tags at all (rather
>>> than branches) since Subversion does not enforce the members of a
>>> "tags" subdirectory to remain unchanged after the initial copy.
>>> Basically, tags are not different from branches in Subversion from
>>> what you can do with them.
>>
>> Well, git-svn could make tags when the tag/branch is created in  
>> subversion,
>> and then create a branch on the first commit on top of that tag/ 
>> branch in
>> svn.
> 
> Or update the tag ref in Git so that it points to the new "HEAD" of  
> the SVN tag.But all in all, it's more consistent to have it look  
> like a branch from the Git point of view, because that's really what  
> it is after all.

Yes and no. By making it just a branch you lose the tag POV on that particular commit, and this is, in a way, a loss of information: yes, it can behave like a branch but most projects use it as a tag.

I think the best approach is to have an annotated tag 'tagname' corresponding to the tags/tagname copy on the svn side in addition to the 'tags/tagname' branch that is currently used to track its head.

-- 
Giuseppe "Oblomov" Bilotta
Previous: Benoit SIGOURENext: Giuseppe Bilotta
Message 5 of 17 in “git-svn tags and branches”
  1. Giuseppe BilottaAug 27, 2007
  2. David KastrupAug 27, 2007
  3. Mike HommeyAug 27, 2007
  4. Benoit SIGOUREAug 27, 2007
  5. Giuseppe BilottaAug 27, 2007
  6. Giuseppe BilottaAug 27, 2007
  7. Eric WongAug 30, 2007
  8. Giuseppe BilottaAug 30, 2007
  9. Peter BaumannAug 30, 2007
  10. Giuseppe BilottaAug 30, 2007
  11. Giuseppe BilottaAug 29, 2007
  12. Andreas EricssonAug 29, 2007
  13. Junio C HamanoAug 29, 2007
  14. Giuseppe BilottaAug 29, 2007
  15. Junio C HamanoAug 29, 2007
  16. Giuseppe BilottaAug 29, 2007
  17. Giuseppe BilottaAug 29, 2007

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.