Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-3942

Provide new subcommand on svnadmin to create a lock

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • trunk
    • 1.8.0
    • svnadmin
    • None

    Description

      The svnadmin command currently allows you to list and remove locks.  It would be useful if you could also 
      create locks.  Suggested syntax would be something like:
      
      svnadmin lock REPOS PATH USERNAME COMMENT-FILE TOKEN
      
      Where COMMENT-FILE is handled similar to svnadmin setrevprop
      TOKEN would be optional.  If not provided a lock token would be generated.
      
      The reason I would like this subcommand is that it would make it possible to build a system for synchronizing 
      locks between a master and slave.  A post-lock hook on master could send this info to slaves and they could use 
      it to create the lock on the slaves (with the same lock token).  It seems like it would be possible for someone to 
      use this command to store lock information along with a dumpfile and recreate them after restoring repository 
      from a dump.  That is not my goal, but I think it is another possible usage.
      
      Buddied by: cmpilato
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              markphip Mark Phippard
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: