import svn repository to remote server - linux

Hi just a quick question here
I got an account on www.assembla.com which is svn repository hosting website.
I managed to checkout/commit to remote repository.
Now I am trying to import my existing local svn rep, to remote server.
I cant use "svnadmin load" since it expecting to find local target not URL.
I tried svn+ssh but it failed to connect.
Among other things I am behind proxy.
my repository is here: https://subversion.assembla.com/svn/xxx/
Do you know how I can import my old repository?
Thanks!

I believe you can only import into a new SVN repository.
Click the Admin tab.
Click Tools.
For Repositories > Source/SVN, click the Add button.
Click the new Source/SVN tab that appears at the top. If you already have an existing SVN repository, the new tab's name would be appended with "2" or the next available number (e.g., "Source/SVN2").
Click Import/Export.
The Import screen (as shown below) is self-explanatory. Hope it works for you

How can I import or export a subversion repository?
How can I import or export a
subversion repository? Trac tickets?
You can find forms for importing and
exporting svn repositories in Trac.
Go to your Trac and log in as a space
owner. You will see an Admin tab on
the top right. Select Admin, and
select “Data Import/Export” from the
left menu. There is a link to export
the svn repository, and a form to
upload a zipped Subversion repository
dump. There are also forms for
uploading and exporting trac
directories. We currently use trac
0.10.4.

Related

I have accidentally deleted a page from Azure DevOps Wiki. How can I recover it?

I have accidentally deleted a Wiki-page from our repository in Azure DevOps.
(How) can I recover it?
That is not an option for us, since we will loose many changes that
were made after the last version no. up until the date I accidentally
deleted the wiki page.
You can choose Clone wiki to download the wiki repo to local machine.
Then use git commands(git revert or what) locally to get the deleted page, once you find the deleted page, publish it and add it back to Wiki page as a new commit.
I was just able to do this without too much fanfare. The resource that was helpful was this VS community topic. There is an answer that provides a solution that doesn't require you to clone the repo.
The key insight is that you can navigate to the Azure DevOps repo UI for the Git repo that's backing the wiki. The solution author says that the shape of the URL is something like https://dev.azure.com/<organization-name>/<project-name>/_git/<wiki-name>.wiki. This didn't quite work for me because we have a different URL scheme in our organization, but I was able to figure it out after a little trial and error. I later saw that you can get the URL by using the Clone Repo UI in the wiki - it gives you the URL, so you can just copy it and navigate to it.
Anyway, the steps were:
Figure out the URL of the git repo that backs the wiki
Navigate to the revision history for the entire wiki
the current UI shows you the Contents tab by default - switch to History
Scroll until you find the commits that deleted the pages you want to restore
it's one of those list views that populate themselves as you scroll, so you won't be able to use the browser page search efficiently, unfortunately
Revert the commits
In my case, this required clicking on them and creating pull requests to revert, but I was able to merge them myself without involving code reviewers. YMMV
All in all, not a wholly terrible experience, but completely undiscoverable.
Assuming you're managing a provisioned wiki (vs using published code as a wiki):
Look in the top-right corner for the vertical 3-dot menu, where there's an option to view revisions:
Choose the revision you want to revert to (e.g. the one prior to deleting the needed wiki page), from the list (click on its version hash):
From the revision details, select "Revert":
At this point, your wiki should be at its prior state, and your wiki page should once again be available.
Note: If you're using published code as a wiki, you would recover/revert your changes as you would with any other code commit.
More details may be found here.
I couldn't find a way to do this through the Azure DevOps web interface but you can restore the page by reverting the commit that deleted it if you clone the wiki locally.
Clone the wiki to your computer - find the clone wiki option in the menu at the top of the left bar which shows the wiki contents, copy the URL and use to clone locally using your usual git client.
Find the commit that deleted the page, the commit message will start with "Deleted page" then the name of the page you deleted.
Restore the page and commit the change. There are various ways to do this - I reverted the commit, you could checkout the commit and copy the page out to make a new commit. You may get a merge conflict on '.order', I'm not sure what the best thing to do is but I kept the current version and haven't had any problems.
Push the changes to Azure DevOps, refresh and you'll see the page has been restored.
This works even for Project Wikis. I wonder if Azure DevOps has added the functionality that enabled this since some of the other answers have been written.

Import a GitHub repo into Databricks community edition

I am trying to import some data from a public repo in GitHub so that to use it from my Databricks notebooks.
So far I tried to connect my Databricks account with my GitHub as described here, without results though since it seems that GitHub support comes with some non-community licensing. I get the following message when I try to set the GitHub token which is required for the GitHub integration:
The same question has been asked before on the official Databricks forum.
What is the best way to import and store a GitHub repo on databricks community edition?
I managed to solve this using shell commands from the notebook itself. To retrieve the repository for the 1st time I did git clone via HTTPS:
%sh git clone https://github.com/SomeDataRepo/TheData.git --depth 1 --branch=master /dbfs/FileStore/TheData/
Why not SSH? Well SSH requires to setup the SSH keys which was not necessary in my case.
Finally, every time that I need a fresh version of the data I execute a git pull before executing my program:
%sh git -C /dbfs/FileStore/TheData/ pull
assuming you have python installed on your desktop, install the databricks cli, clone the git repo to your local, then use the workspace cli to import the entire repo as a directory.
https://docs.databricks.com/dev-tools/cli/workspace-cli.html
The simplest way is, just import the .dbc file direct into your user workspace on Community Edition, as explained by Databricks here:
Import GitHub repo into Community Edtion Workspace
In GitHub, in the pane to the right, under Releases, click on the
Latest link:
Latest release
Under Assets look for the link to the DBC file
Right click the DBC file's link and copy the link location (there is
no need to download this file)
.dbc file
Back in Databricks, click on the Workspace icon in the
navigational pane to the left
In the Workspace swimlane, click the Home button to open your
home folder. It should open the folder /Users/your-email-address
as in /Users/student#example.com
In the swimlane for your email address, click on the down chevron
and select Import
Import
In the Import Notebooks dialog
Select URL
Paste in the URL copied in step #3 above
Click Import
Once the import is done, select the new folder for this course to
view this course's notebooks.
Which notebook you should start with depends on your courseware and/or instructor.

ADFv2: How to remove connection to GIT repository once set up?

Currently, ADFv2 allows you to set up Code Repository and automatically synchronise JSON files of components of pipelines, datasets, etc with repo (e.g.GIT).
But, once you set it up - how to actually remove it or change configuration (not branch)?
In overview tab, there is a repository settings button, click it, you will see the remove repository button.

creating a readthedocs.io repo in sync with a public gitlab repo

I have a public gitlab project here
https://gitlab.com/parmentelat/minisim2
I tried to add a corresponding project in readthedocs.io, so that a new commit being pushed onto gitlab triggers a doc rebuild on readthedocs
I do this routinely with projects hosted at github and it's really easy - at least under my setup - since readthedocs shows me an updated list of github repos right away, and everything goes smoothly after that.
When trying to import this gitlab project under readthedocs though, I have to chose 'Import manually' as my gitlab projects would not show up.
(In the 'connected services' of my readthedocs settings page, I could find a way to connect to github and to bitbucket; gitlab does not seem supported)
Fair enough, I try this manual import, but at that point no matter how I try to spell the project's URL and what method (git or https) I try to use for importing the project, I get this error message
This repository doesn't have a valid webhook set up. That means it won't be rebuilt on commits to the repository.
You can resync your webhook to fix this.
is what I am trying to do doable at all ?
do I need to do something specific on the gitlab side
thanks for any hint
You can manually set the webhook on gitlab.com:
Click the settings icon for your project
Select "Integrations"
Enter the above URL, select "Push events" and "Enable SSL verification"
Click "Add Webhook"
That should do it.

[Tortoise SVN]: The Windows Context Menu Doesn't Show Check-In option

I installed Tortoise SVN and configured it with Aptana Studio. When I right-click on the folder that I have added into Tortoise repository, it shows the Check-Out option, but not the Check-In option. Why?
Even in Aptana IDE, it is not showing Check-In.
The "Commit" option should be what you're looking for.
In other version control systems, you have to get a local working copy of the repository, which is initially read-only. Then you have to explicitly "check out" a file before you can edit it and then you "check in" once you're done.
In SVN terms, however, "check out" is the operation of creating a local working copy of the repository (or a subtree of it). Once you have the working copy, it is already editable; you don't need to do an explicit action before you can edit the file. SVN will track automatically whether the file was modified locally and once that happens, SVN will offer you "commit" option, which will submit your changes to the repository.
Either, as hexium says, you're looking for the wrong thing, or you have it hidden in a submenu. Explore the settings option inside of the SVN submenu, to choose whether commit is displayed on the root context menu or in a submenu.

Resources