Alien-SVN

 view release on metacpan or  search on metacpan

src/subversion/CHANGES  view on Meta::CPAN

    * fixed: 'svn unlock URL' segfault (r14893)
    * fixed: 'svn commit' failure on XML-unsafe locked paths (issue #2335)
    * fixed: recursive directory copy bug (issue #2343)
    * fixed: don't initialize RA library in 'svnversion' (r14755)
    * fixed: svn-push segfault (r14732)
    * various translation updates for localized client messages

  - Server:
    * fixed: 'svn log' performance regression, general (r14116, 14772, 14759)
    * fixed: 'svn log -v' performance regression, FSFS-specific (r15016)
    * fixed: mod_dav_svn bug sets content-type incorrectly (r15046)

 Developer-visible changes:
 * fixed: win32 innosetup's add/repair/remove features (r14830)
 * fixed: OBOE with 'limit' parameter of svn_repos_get_logs3(). (r15119)
 * redhat RPM fixes (r15050)
 * perl bindings:
     - accessors for svn_lock_t (r15082)
     - call utf_initialize, adjust global pool usage (r15076, r15080,
                                                      r15081, r15117)

src/subversion/subversion/libsvn_ra_serf/ra_serf.h  view on Meta::CPAN

 * Structure that can be passed to our default handler to guide the
 * execution of the request through its lifecycle.
 */
typedef struct svn_ra_serf__handler_t {
  /* The HTTP method string of the request */
  const char *method;

  /* The resource to the execute the method on. */
  const char *path;

  /* The content-type of the request body. */
  const char *body_type;

  /* If TRUE then default Accept-Encoding request header is not configured for
     request. If FALSE then 'gzip' accept encoding will be used if compression
     enabled. */
  svn_boolean_t custom_accept_encoding;

  /* Has the request/response been completed?  */
  svn_boolean_t done;

src/subversion/subversion/mod_dav_svn/repos.c  view on Meta::CPAN

  comb->res.hooks = &dav_svn__hooks_repository;
  comb->res.pool = r->pool;
  comb->res.uri = cleaned_uri;

  /* Original request, off which to generate subrequests later. */
  comb->priv.r = r;

  /* ### ugly hack to carry over Content-Type data to the open_stream, which
     ### does not have access to the request headers. */
  {
    const char *ct = apr_table_get(r->headers_in, "content-type");

    comb->priv.is_svndiff =
      ct != NULL
      && strcmp(ct, SVN_SVNDIFF_MIME_TYPE) == 0;
  }

  negotiate_encoding_prefs(r, &comb->priv.svndiff_version);

  /* ### and another hack for computing diffs to send to the client */
  comb->priv.delta_base = apr_table_get(r->headers_in,

src/subversion/subversion/mod_dav_svn/repos.c  view on Meta::CPAN

  if (serr != NULL)
    {
      return dav_svn__convert_err(serr, HTTP_INTERNAL_SERVER_ERROR,
                                  "Could not prepare to write the file",
                                  resource->pool);
    }

  /* if the incoming data is an SVNDIFF, then create a stream that
     will process the data into windows and invoke the FS window handler
     when a window is ready. */
  /* ### we need a better way to check the content-type! this is bogus
     ### because we're effectively looking at the request_rec. doubly
     ### bogus because this means you cannot open arbitrary streams and
     ### feed them content (the type is always tied to a request_rec).
     ### probably ought to pass the type to open_stream */
  if (resource->info->is_svndiff)
    {
      (*stream)->wstream =
        svn_txdelta_parse_svndiff((*stream)->delta_handler,
                                  (*stream)->delta_baton,
                                  TRUE,

src/subversion/subversion/mod_dav_svn/repos.c  view on Meta::CPAN

  /* We only allow POSTs against the "me resource" right now. */
  derr = get_resource(r, dav_svn__get_root_dir(r),
                      "ignored", 0, &resource);
  if (derr != NULL)
    return derr->status;
  if (resource->info->restype != DAV_SVN_RESTYPE_ME)
    return HTTP_BAD_REQUEST;

  /* Pass skel-type POST request handling off to a dispatcher; any
     other type of request is considered bogus. */
  content_type = apr_table_get(r->headers_in, "content-type");
  if (content_type && (strcmp(content_type, SVN_SKEL_MIME_TYPE) == 0))
    {
      derr = handle_post_request(r, resource, r->output_filters);
    }
  else
    {
      derr = dav_svn__new_error(resource->pool, HTTP_BAD_REQUEST, 0,
                                "Unsupported POST request type.");
    }

src/subversion/subversion/po/es.po  view on Meta::CPAN

#: ../libsvn_ra_neon/commit.c:1176
#, c-format
msgid "Could not write svndiff to temp file"
msgstr "No se pudo escribir svndiff a un archivo temporal"

#: ../libsvn_ra_neon/fetch.c:246
msgid "Could not save the URL of the version resource"
msgstr "No se pudo guardar el URL del recurso versionado"

#: ../libsvn_ra_neon/fetch.c:439
msgid "Could not get content-type from response"
msgstr "No se pudo obtener el 'content-type' a partir de la respuesta."

#: ../libsvn_ra_neon/fetch.c:532
msgid "Could not save file"
msgstr "No se pudo grabar el archivo"

#: ../libsvn_ra_neon/fetch.c:995
msgid "Server response missing the expected deadprop-count property"
msgstr "A la respuesta del servidor le falta la propiedad deadprop-count y se la esperaba"

#: ../libsvn_ra_neon/fetch.c:1091 ../libsvn_ra_serf/property.c:1001

src/subversion/subversion/po/it.po  view on Meta::CPAN

#: ../libsvn_ra_neon/commit.c:1176
#, c-format
msgid "Could not write svndiff to temp file"
msgstr "Non sono riuscito a scrivere l'svndiff su un file temporaneo"

#: ../libsvn_ra_neon/fetch.c:246
msgid "Could not save the URL of the version resource"
msgstr "Non ho potuto salvare l'URL della risorsa di versione"

#: ../libsvn_ra_neon/fetch.c:439
msgid "Could not get content-type from response"
msgstr "Non è stato possibile ottenere il valore di content-type dalla risposta"

#: ../libsvn_ra_neon/fetch.c:532
msgid "Could not save file"
msgstr "Non ho potuto salvare il file"

#: ../libsvn_ra_neon/fetch.c:995
msgid "Server response missing the expected deadprop-count property"
msgstr "L'attesa proprietà deadprop-count non è presente nella risposta del server"

#: ../libsvn_ra_neon/fetch.c:1091 ../libsvn_ra_serf/property.c:1001

src/subversion/subversion/po/ja.po  view on Meta::CPAN

#: ../libsvn_ra_neon/commit.c:1176
#, c-format
msgid "Could not write svndiff to temp file"
msgstr "svndiff を一時ファイルに書き込めませんでした"

#: ../libsvn_ra_neon/fetch.c:246
msgid "Could not save the URL of the version resource"
msgstr "バージョン管理されたリソースの URL を保存できません"

#: ../libsvn_ra_neon/fetch.c:439
msgid "Could not get content-type from response"
msgstr "レスポンスから content-type を取得できませんでした"

#: ../libsvn_ra_neon/fetch.c:532
msgid "Could not save file"
msgstr "ファイルを保存できませんでした"

#: ../libsvn_ra_neon/fetch.c:995
msgid "Server response missing the expected deadprop-count property"
msgstr "期待される deadprop-count 属性がサーバからのレスポンスにありません"

#: ../libsvn_ra_neon/fetch.c:1091 ../libsvn_ra_serf/property.c:1001

src/subversion/subversion/po/ja.po  view on Meta::CPAN

#~ msgstr ""
#~ "一般的な使用方法: svnsync <サブコマンド> <同期先 URL> [<引数やオプション> ...]\n"
#~ "                  svnsync --version\n"
#~ "特定のサブコマンドに関するヘルプを読みたいときは 'svnsync help <サブコマンド>'\n"
#~ "と打ってください。\n"
#~ "プログラムのバージョンや RA モジュールを参照するには 'svnsync --version' と打っ\n"
#~ "てください。\n"
#~ "\n"
#~ "利用可能なサブコマンド:\n"

#~ msgid "Could not get content-type from response."
#~ msgstr "レスポンスから content-type を取得できませんでした。"

#~ msgid "Lock file '%s' is not a regular file"
#~ msgstr "ロック用のファイル '%s' は正常なファイルではありません"

# * Description for 'svn resolved'.
# * "resolved: " is displayed at the head of the first line.
#~ msgid ""
#~ "Remove 'conflicted' state on working copy files or directories.\n"
#~ "usage: resolved PATH...\n"
#~ "\n"

src/subversion/subversion/po/ko.po  view on Meta::CPAN

#: ../libsvn_ra_neon/commit.c:1176
#, c-format
msgid "Could not write svndiff to temp file"
msgstr "svndiff 를 임시 파일에 기록할 수 없습니다"

#: ../libsvn_ra_neon/fetch.c:247
msgid "Could not save the URL of the version resource"
msgstr "버전 관리대상인 URL을 저장할 수 없습니다"

#: ../libsvn_ra_neon/fetch.c:440
msgid "Could not get content-type from response"
msgstr "컨텐트 형식을 응답으로부터 얻을 수 없습니다"

#: ../libsvn_ra_neon/fetch.c:533
msgid "Could not save file"
msgstr "파일을 저장할 수 없습니다"

#: ../libsvn_ra_neon/fetch.c:707 ../libsvn_ra_serf/update.c:2741
msgid "Can't get text contents of a directory"
msgstr "디렉토리의 다음 항목을 얻을 수 없습니다"

src/subversion/subversion/po/nb.po  view on Meta::CPAN

#: ../libsvn_ra_neon/commit.c:1176
#, c-format
msgid "Could not write svndiff to temp file"
msgstr "Kunne ikke skrive svndiff til midlertidig fil"

#: ../libsvn_ra_neon/fetch.c:246
msgid "Could not save the URL of the version resource"
msgstr "Kunne ikke lagre adressen på den versjonerte ressursen"

#: ../libsvn_ra_neon/fetch.c:439
msgid "Could not get content-type from response"
msgstr "Klarte ikke å lese innholdstype (content-type) fra responsen"

#: ../libsvn_ra_neon/fetch.c:532
msgid "Could not save file"
msgstr "Kunne ikke lagre filen"

#: ../libsvn_ra_neon/fetch.c:995
msgid "Server response missing the expected deadprop-count property"
msgstr "Tjenerresponsen mangler den forventede «deadprop-count»-egenskapen"

#: ../libsvn_ra_neon/fetch.c:1091 ../libsvn_ra_serf/property.c:1001

src/subversion/subversion/po/pl.po  view on Meta::CPAN

#: ../libsvn_ra_neon/commit.c:1176
#, c-format
msgid "Could not write svndiff to temp file"
msgstr "Nie udało się zapisać danych svndiff do pliku tymczasowego"

#: ../libsvn_ra_neon/fetch.c:246
msgid "Could not save the URL of the version resource"
msgstr "Nie można zapisać URL obiektu wersji"

#: ../libsvn_ra_neon/fetch.c:439
msgid "Could not get content-type from response"
msgstr "Nie można uzyskać typu zawartości z odpowiedzi"

#: ../libsvn_ra_neon/fetch.c:532
msgid "Could not save file"
msgstr "Błąd w trakcie zapisywania pliku"

#: ../libsvn_ra_neon/fetch.c:995
msgid "Server response missing the expected deadprop-count property"
msgstr "Brak oczekiwanego atrybutu deadprop-count w odpowiedzi serwera"

src/subversion/subversion/po/pt_BR.po  view on Meta::CPAN

#: ../libsvn_ra_neon/commit.c:1176
#, c-format
msgid "Could not write svndiff to temp file"
msgstr "Não foi possível escrever svndiff para arquivo temporário"

#: ../libsvn_ra_neon/fetch.c:246
msgid "Could not save the URL of the version resource"
msgstr "Não foi possível salvar a URL do recurso de versão"

#: ../libsvn_ra_neon/fetch.c:439
msgid "Could not get content-type from response"
msgstr "Não foi possível obter content-type da resposta"

#: ../libsvn_ra_neon/fetch.c:532
msgid "Could not save file"
msgstr "Não foi possível gravar arquivo"

#: ../libsvn_ra_neon/fetch.c:995
msgid "Server response missing the expected deadprop-count property"
msgstr "Resposta do servidor não possui propriedade deadprop-count esperada"

#: ../libsvn_ra_neon/fetch.c:1091 ../libsvn_ra_serf/property.c:1001

src/subversion/subversion/po/zh_TW.po  view on Meta::CPAN

#: ../libsvn_ra_neon/commit.c:1176
#, c-format
msgid "Could not write svndiff to temp file"
msgstr "無法寫 svndiff 至暫存檔"

#: ../libsvn_ra_neon/fetch.c:246
msgid "Could not save the URL of the version resource"
msgstr "無法儲存版本資源的 URL"

#: ../libsvn_ra_neon/fetch.c:439
msgid "Could not get content-type from response"
msgstr "無法自回應取得 content-type"

#: ../libsvn_ra_neon/fetch.c:532
msgid "Could not save file"
msgstr "無法儲存檔案"

#: ../libsvn_ra_neon/fetch.c:995
msgid "Server response missing the expected deadprop-count property"
msgstr "伺服器回應缺少預期的 deadprop-count 性質"

#: ../libsvn_ra_neon/fetch.c:1091 ../libsvn_ra_serf/property.c:1001

src/subversion/tools/buildbot/master/Feeder.py  view on Meta::CPAN


from twisted.web.resource import Resource

from buildbot.status.web import baseweb
from buildbot.status.builder import FAILURE, SUCCESS, WARNINGS

class XmlResource(Resource):
    contentType = "text/xml; charset=UTF-8"
    def render(self, request):
        data = self.content(request)
        request.setHeader("content-type", self.contentType)
        if request.method == "HEAD":
            request.setHeader("content-length", len(data))
            return ''
        return data
    docType = ''
    def header (self, request):
        data = ('<?xml version="1.0"?>\n')
        return data
    def footer(self, request):
        data = ''

src/subversion/tools/server-side/svnpubsub/svnpubsub/server.py  view on Meta::CPAN


    def write_data(self, data):
        self.write(data + "\n\0")

    """ "Data must not be unicode" is what the interfaces.ITransport says... grr. """
    def write(self, input):
        self.r.write(str(input))

    def write_start(self):
        self.r.setHeader('X-SVNPubSub-Version', '1')
        self.r.setHeader('content-type', 'application/vnd.apache.vc-notify+json')
        self.write('{"svnpubsub": {"version": 1}}\n\0')

    def write_heartbeat(self):
        self.write(json.dumps({"stillalive": time.time()}) + "\n\0")


class SvnPubSub(resource.Resource):
    isLeaf = True
    clients = []

    def cc(self):
        return len(self.clients)

    def remove(self, c):
        self.clients.remove(c)

    def render_GET(self, request):
        log.msg("REQUEST: %s"  % (request.uri))
        request.setHeader('content-type', 'text/plain')

        repository = None
        type = None

        uri = request.uri.split('/')
        uri_len = len(uri)
        if uri_len < 2 or uri_len > 4:
            request.setResponseCode(400)
            return "Invalid path\n"

src/subversion/tools/server-side/svnpubsub/svnpubsub/server.py  view on Meta::CPAN


    def notifyAll(self, commit):
        data = commit.render_commit()

        log.msg("COMMIT: %s (%d clients)" % (commit.render_log(), self.cc()))
        for client in self.clients:
            if client.interested_in(commit):
                client.write_data(data)

    def render_PUT(self, request):
        request.setHeader('content-type', 'text/plain')
        ip = request.getClientIP()
        if ip != "127.0.0.1":
            request.setResponseCode(401)
            return "Access Denied"
        input = request.content.read()
        #import pdb;pdb.set_trace()
        #print "input: %s" % (input)
        try:
            c = json.loads(input)
            commit = Commit(c)



( run in 2.656 seconds using v1.01-cache-2.11-cpan-70e19b8f4f1 )