You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Rokhkin, IlyaX" <il...@intel.com> on 2012/02/09 16:49:05 UTC

ran get-location-segments.py returns 0

1/16/2012 7:23 AM | ilyax Rokhkin

Hi,

I ran get-location-segments.py to the hole repository, but nothing was found
What it means I wrong used the tool, as I know for sure that there is replaced (R) files in the repo, where old history and file gone and new file was added by merge command:
/usr/intel/pkgs/python/2.4/bin/python /nfs/iil/home/irokhk1x/shared/get-location-segments.py file:///nfs/iil/proj/mpg/svn_av_repo/tests
r0-r299042: (null)

What is the problem I know for sure there are files that was removed and imported with the same name
Can you please assist me?

Regards,
Ilya Rokhkin
Configuration Management Engineer
Intel - Data, storage and SW Team
iNET: 8-920-6165
Tel: +972-3-9296165

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

RE: ran get-location-segments.py returns 0

Posted by "Rokhkin, IlyaX" <il...@intel.com>.
Anyone can assist here?

Regards,
Ilya Rokhkin
Configuration Management Engineer
Intel - Data, storage and SW Team
iNET: 8-920-6165
Tel: +972-3-9296165

From: Rokhkin, IlyaX
Sent: Thursday, February 09, 2012 17:49
To: users@subversion.apache.org
Subject: ran get-location-segments.py returns 0

1/16/2012 7:23 AM | ilyax Rokhkin

Hi,

I ran get-location-segments.py to the hole repository, but nothing was found
What it means I wrong used the tool, as I know for sure that there is replaced (R) files in the repo, where old history and file gone and new file was added by merge command:
/usr/intel/pkgs/python/2.4/bin/python /nfs/iil/home/irokhk1x/shared/get-location-segments.py file:///nfs/iil/proj/mpg/svn_av_repo/tests
r0-r299042: (null)

What is the problem I know for sure there are files that was removed and imported with the same name
Can you please assist me?

Regards,
Ilya Rokhkin
Configuration Management Engineer
Intel - Data, storage and SW Team
iNET: 8-920-6165
Tel: +972-3-9296165

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

RE: ran get-location-segments.py returns 0

Posted by "Rokhkin, IlyaX" <il...@intel.com>.
OK, now I understand
Need to run #get-location-segments.py /repo/path/to/filename
And then it says example if the file foo has 3 other instances in history that were replaced (R)
So get-location-segments.py works per file and not per repo, right?

Regards,
Ilya Rokhkin
Configuration Management Engineer
Intel - Data, storage and SW Team
iNET: 8-920-6165
Tel: +972-3-9296165


-----Original Message-----
From: Stefan Sperling [mailto:stsp@elego.de] 
Sent: Sunday, February 19, 2012 14:56
To: Rokhkin, IlyaX
Cc: users@subversion.apache.org
Subject: Re: ran get-location-segments.py returns 0

On Sun, Feb 19, 2012 at 12:44:55PM +0000, Rokhkin, IlyaX wrote:
> Yes, it helps
> But the issue more complicated
> We have hundred such files in the repo, and we do not know the names, we want to find all those files that were replaced (R)

Well, if you run 'svn log' on the repository root it will list all
commits ever made. So you can find all replaced files this way.

> In collabnet they said me that get-location-segments.py can find all such files in the repo

I think they misunderstood what you want to do. get-location-segments
solves an entirely different problem. It answers "given a file foo,
at which other locations did this file exist in history?". You seem
to be asking "What is the list of paths at which one or more
replacements occured in history?". That's a different problem.
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


Re: ran get-location-segments.py returns 0

Posted by Stefan Sperling <st...@elego.de>.
On Sun, Feb 19, 2012 at 12:44:55PM +0000, Rokhkin, IlyaX wrote:
> Yes, it helps
> But the issue more complicated
> We have hundred such files in the repo, and we do not know the names, we want to find all those files that were replaced (R)

Well, if you run 'svn log' on the repository root it will list all
commits ever made. So you can find all replaced files this way.

> In collabnet they said me that get-location-segments.py can find all such files in the repo

I think they misunderstood what you want to do. get-location-segments
solves an entirely different problem. It answers "given a file foo,
at which other locations did this file exist in history?". You seem
to be asking "What is the list of paths at which one or more
replacements occured in history?". That's a different problem.

RE: ran get-location-segments.py returns 0

Posted by "Rokhkin, IlyaX" <il...@intel.com>.
Yes, it helps
But the issue more complicated
We have hundred such files in the repo, and we do not know the names, we want to find all those files that were replaced (R)
In collabnet they said me that get-location-segments.py can find all such files in the repo

Regards,
Ilya Rokhkin
Configuration Management Engineer
Intel - Data, storage and SW Team
iNET: 8-920-6165
Tel: +972-3-9296165


-----Original Message-----
From: Stefan Sperling [mailto:stsp@elego.de] 
Sent: Sunday, February 19, 2012 14:37
To: Rokhkin, IlyaX
Cc: users@subversion.apache.org
Subject: Re: ran get-location-segments.py returns 0

On Sun, Feb 19, 2012 at 08:37:24AM +0000, Rokhkin, IlyaX wrote:
> Hi Stefan,
> 
> Files were replaced (R) by merge, because they have 2 different ID, so one file with its history is deleted
> The idea is to find those deleted file with history

If I replace a file called 'alpha' and commit the replacement, and then
view the resulting commit with 'svn log --xml -v', it shows the replacement:

  $ svn log -l1 --xml -v
  <?xml version="1.0" encoding="UTF-8"?>
  <log>
  <logentry
     revision="3">
  <author>stsp</author>
  <date>2012-02-19T12:33:40.763738Z</date>
  <paths>
  <path
     kind="file"
     action="R">/trunk/alpha</path>
  </paths>
  <msg>m</msg>
  </logentry>
  </log>

So when parsing the XML output you can look for 'path' entries
where 'action' is 'R'.

Does this help you?
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


Re: ran get-location-segments.py returns 0

Posted by Stefan Sperling <st...@elego.de>.
On Sun, Feb 19, 2012 at 08:37:24AM +0000, Rokhkin, IlyaX wrote:
> Hi Stefan,
> 
> Files were replaced (R) by merge, because they have 2 different ID, so one file with its history is deleted
> The idea is to find those deleted file with history

If I replace a file called 'alpha' and commit the replacement, and then
view the resulting commit with 'svn log --xml -v', it shows the replacement:

  $ svn log -l1 --xml -v
  <?xml version="1.0" encoding="UTF-8"?>
  <log>
  <logentry
     revision="3">
  <author>stsp</author>
  <date>2012-02-19T12:33:40.763738Z</date>
  <paths>
  <path
     kind="file"
     action="R">/trunk/alpha</path>
  </paths>
  <msg>m</msg>
  </logentry>
  </log>

So when parsing the XML output you can look for 'path' entries
where 'action' is 'R'.

Does this help you?

RE: ran get-location-segments.py returns 0

Posted by "Rokhkin, IlyaX" <il...@intel.com>.
Hi Stefan,

Files were replaced (R) by merge, because they have 2 different ID, so one file with its history is deleted
The idea is to find those deleted file with history

Regards,
Ilya Rokhkin
Configuration Management Engineer
Intel - Data, storage and SW Team
iNET: 8-920-6165
Tel: +972-3-9296165

-----Original Message-----
From: Stefan Sperling [mailto:stsp@elego.de] 
Sent: Thursday, February 16, 2012 21:00
To: Rokhkin, IlyaX
Cc: users@subversion.apache.org
Subject: Re: ran get-location-segments.py returns 0

On Sun, Feb 12, 2012 at 09:20:31AM +0000, Rokhkin, IlyaX wrote:
> What should I do to define removed and added files with the same name in allover repository?
> What command should I run? 

There is no command that will give you the answer straight away.
You will need to perform some processing on results you get from
Subversion commands.

I suppose parsing and processing the output of 'svn log -v --xml'
might help. But I cannot be sure because I don't understand what
problem you are really trying to solve here. What do you need this
list of files for?
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


Re: ran get-location-segments.py returns 0

Posted by Stefan Sperling <st...@elego.de>.
On Sun, Feb 12, 2012 at 09:20:31AM +0000, Rokhkin, IlyaX wrote:
> What should I do to define removed and added files with the same name in allover repository?
> What command should I run? 

There is no command that will give you the answer straight away.
You will need to perform some processing on results you get from
Subversion commands.

I suppose parsing and processing the output of 'svn log -v --xml'
might help. But I cannot be sure because I don't understand what
problem you are really trying to solve here. What do you need this
list of files for?

RE: ran get-location-segments.py returns 0

Posted by "Rokhkin, IlyaX" <il...@intel.com>.
Hi Stefan,

What should I do to define removed and added files with the same name in allover repository?
What command should I run? 

Regards,
Ilya Rokhkin
Configuration Management Engineer
Intel - Data, storage and SW Team
iNET: 8-920-6165
Tel: +972-3-9296165


-----Original Message-----
From: Stefan Sperling [mailto:stsp@elego.de] 
Sent: Thursday, February 09, 2012 18:14
To: Rokhkin, IlyaX
Cc: users@subversion.apache.org
Subject: Re: ran get-location-segments.py returns 0

On Thu, Feb 09, 2012 at 03:49:05PM +0000, Rokhkin, IlyaX wrote:
> I ran get-location-segments.py to the hole repository, but nothing was found
> What it means I wrong used the tool, as I know for sure that there is replaced (R) files in the repo, where old history and file gone and new file was added by merge command:
> /usr/intel/pkgs/python/2.4/bin/python /nfs/iil/home/irokhk1x/shared/get-location-segments.py file:///nfs/iil/proj/mpg/svn_av_repo/tests
> r0-r299042: (null)
> 

> What is the problem I know for sure there are files that was removed and imported with the same name

Asking for location segments only makes sense for nodes *within*
the repository. The repository root is present in every revision
and is always on a single line of history. You cannot move or replace
the root.
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


Re: ran get-location-segments.py returns 0

Posted by Stefan Sperling <st...@elego.de>.
On Thu, Feb 09, 2012 at 03:49:05PM +0000, Rokhkin, IlyaX wrote:
> I ran get-location-segments.py to the hole repository, but nothing was found
> What it means I wrong used the tool, as I know for sure that there is replaced (R) files in the repo, where old history and file gone and new file was added by merge command:
> /usr/intel/pkgs/python/2.4/bin/python /nfs/iil/home/irokhk1x/shared/get-location-segments.py file:///nfs/iil/proj/mpg/svn_av_repo/tests
> r0-r299042: (null)
> 

> What is the problem I know for sure there are files that was removed and imported with the same name

Asking for location segments only makes sense for nodes *within*
the repository. The repository root is present in every revision
and is always on a single line of history. You cannot move or replace
the root.