svn: add all my new files and directories


HOME ยป Unix

I'm using Solaris 10. I need to add to SVN everything I've placed in the sub directories of my SVN checkout. I have added files and directories and sub directories - is there a command to take care of everything at once?

If not, is there a command I can run to list all the items I have added that have not been added to SVN yet?


Related to : svn: add all my new files and directories
[ubuntu] ubuntu 9.04 root-owned-directories! how to copyinto or delete files/directories?
Unix
how to install a new font if font-file is available? in which directory to copy it? and overall how to copy/delete files in root-owned directories anyway?
is there a way to login as root in ubuntu?
how to get the last modified date of the list of particular type files in directories and sub directories using sql query or stored procs
Unix

here is what i tried. i tried to find list of all files in different directories in different server path but i need to get the date created or modified of each file please help.

IF OBJECT_ID('tempdb..#DirectoryTree') IS NOT NULL
DROP TABLE #DirectoryTree;

CREATE TABLE #DirectoryTree (subdirectory nvarchar(512),depth int,isfile bit);

INSERT #DirectoryTree (subdirectory,depth,isfile)EXEC master.sys.xp_dirtree 'sqlt10BkupRestore', 3, 1; INSERT #DirectoryTree (subdirectory,depth,isfile)EXEC master.sys.xp_dirtree 'sqlt12BkupRestore', 3, 1; INSERT #DirectoryTree (subdirectory,depth,isfile)EXEC master.sys.xp_dirtree 'sqlt14BkupRestore', 3, 1; SELECT * FROM #DirectoryTree WHERE isfile = 1 AND RIGHT(subdirectory,4) = '.bak'

output will be as

subdirectory depth isfile

Staging.bak 1 1 Enterprise.bak 2 1 Commerce_Full_2014-11-30.bak 1 1

But i need date in the next column also kindly post the answer to get date created or date modified


My code is detecting directories as files and files as directories
Unix

My code is detecting directories as files and files as directories. Why is it doing that? THanks

I've attacked the full function where the issues is occuring, sorry if it's messy! Thankyou for your help again!

unzip(getFilesDir() + "/", "bla.zip", getFilesDir() +
"/unzip/");

 public void unzip(String filepath, String filename, String
unzip_path) {
    try {
        InputStream is = new FileInputStream(filepath + filename);

    Log.d("1st", filepath + filename);
    ZipInputStream zis = new ZipInputStream(new
BufferedInputStream(is));

    try {
        ZipEntry ze;
        while ((ze = zis.getNextEntry()) != null) {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            byte[] buffer = new byte[1024];
            int count;

            String filename_temp = ze.getName();
            File fmd = new File(unzip_path, filename_temp);
            Log.d("2nd", unzip_path + filename_temp);
            Log.d("ERROR7", fmd.toString());
            //if (!fmd.exists()) {
                if(fmd.isDirectory()) {
                    Log.d("ERROR4", fmd.toString());
                    fmd.mkdirs();
                } else if (fmd.isFile()) {
                    Log.d("ERROR4", fmd.toString() +"FILE");
                }

            //} else {}
            Log.d("ERROR5", "DIR");
            FileOutputStream fout = new FileOutputStream(unzip_path +
filename_temp);
            Log.d("ERROR6", "DIR");
            while ((count = zis.read(buffer)) != -1) {
                baos.write(buffer, 0, count);
                byte[] bytes = baos.toByteArray();
                fout.write(bytes);
                baos.reset();
            }

            fout.close();
            //}
        }
        zis.close();
    } catch (IOException e) {
        Log.d("ERROR1", e.toString());
    }} catch (FileNotFoundException e) {            Log.d("ERROR2",
e.toString());}
}

How can I list hidden directories, then directories, then hidden files and finally files with ls?
Unix

I'm trying to figure out how to list the contents of a directory in the following group order:

  1. Hidden directories
  2. Normal directories
  3. Hidden files
  4. Normal files

Based on this answer I tried the following:

ls -dlU .*/ */

This gets me half-way there by listing hidden directories and then normal directories. The problem is it doesn't list any files.

I've also tried various ways of piping the output to sort with no luck.

How can I do this?


Maven release process consistently failing : svn: E175013: Access to '/svn/tester/!svn/bc/170' forbidden
Unix

I have been banging my head for quite a while now and I have actually learnt lots of this issues on stackoverflow an pretty sure I covered some of the common mistakes(besides,I have done several releases with bitbucket and github) that were starring at me. But still I have not been able to release anything. I feel like it's time to shout for a little help :)

I use a self hosted subversion managed by usvn and a sonatype private nexus repository. I have a multi module maven project arrange in a parent and sub module model.

Below is the snippet of the parent pom that is relevant

 <build>
    <pluginManagement>
        <plugins>
            <plugin>
               
<groupId>org.apache.maven.plugins</groupId>
               
<artifactId>maven-surefire-plugin</artifactId>
                <version>2.12</version>
                <configuration>
                    <excludes>
                        <exclude>**/*ITest.java</exclude>
                    </excludes>
                </configuration>
            </plugin>
            <plugin>
               
<artifactId>maven-failsafe-plugin</artifactId>
                <version>2.6</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>integration-test</goal>
                            <goal>verify</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
               
<groupId>org.apache.maven.plugins</groupId>
               
<artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <encoding>${project.build.sourceEncoding}   
</encoding>
                    <meminitial>128m</meminitial>
                    <maxmem>512m</maxmem>
                </configuration>
            </plugin>
            <plugin>
               
<groupId>org.apache.maven.plugins</groupId>
               
<artifactId>maven-resources-plugin</artifactId>
                <version>2.4.3</version>
                <configuration>
                    <encoding>${project.build.sourceEncoding}
</encoding>
                </configuration>
            </plugin>
            <plugin>
               
<groupId>org.apache.maven.plugins</groupId>
               
<artifactId>maven-release-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <preparationGoals>clean verify
-DenableIT=true</preparationGoals>
                     
<tagBase>https://repo.mysvnserver.com/svn/tester/tags</tagBase>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.mysema.maven</groupId>
                <artifactId>maven-apt-plugin</artifactId>
                <version>1.0</version>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
               
<artifactId>build-helper-maven-plugin</artifactId>
                <version>1.9</version>
            </plugin>
        </plugins>
    </pluginManagement>
</build>

<distributionManagement>
    <repository>
        <id>dal</id>
              
<url>http://nexus.mynexusserver.com/nexus/content/repositories/releases</url>
    </repository>
</distributionManagement>

<scm>
                      
<connection>scm:svn:https://username@repo.mysvnserver.com/svn/tester</connection>
   
<developerConnection>scm:svn:https://username@repo.mysvnserver.com/svn/tester</developerConnection>
     
<url>https://repo.mysvnserver.com/usvn/project/tester/browser</url>
    <tag>tester</tag>
</scm>

Below is my settings.xml file:

 <?xml version="1.0" encoding="UTF-8"?>
 <settings >
 
<localRepository>/home/joseph/.m2/repository</localRepository>
  <servers>
    <server>
        <username>username</username>
        <password>password</password>
        <id>nexus</id>
    </server>
<server>
        <username>username</username>
        <password>password</password>
        <id>dal</id>
    </server>
</servers>

<mirrors>
    <mirror>
        <!--This sends everything else to /public -->
        <id>nexus</id>
        <mirrorOf>central</mirrorOf>
       
<url>http://nexus.mynexusserver.com/nexus/content/repositories/public/</url>
    </mirror>
</mirrors>
<profiles>
    <profile>
        <id>nexus</id>
        <!--Enable snapshots for the built in central repo to
direct -->
        <!--all requests to nexus via the mirror -->
        <repositories>
            <repository>
                <id>central</id>
                <url>http://central</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
            </repository>
    <repository>
                <id>dal</id>
               
<url>http://nexus.mynexusserver.com/nexus/content/repositories/releases</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
            </repository>
        </repositories>
        <pluginRepositories>
            <pluginRepository>
                <id>central</id>
                <url>http://central</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
            </pluginRepository>
        </pluginRepositories>
    </profile>
</profiles>
<activeProfiles>
    <!--make the profile active all the time -->
    <activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>

Since it would probably too much to put the output here , please find it on paste.ee .

I am more convince this is either configuration issue on subversion side because things looks fairly ok to me. Can anyone point out something I am missing?

Thanks


svn: add all my new files and directories
Unix

I'm using Solaris 10. I need to add to SVN everything I've placed in the sub directories of my SVN checkout. I have added files and directories and sub directories - is there a command to take care of everything at once?

If not, is there a command I can run to list all the items I have added that have not been added to SVN yet?



Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .